diff options
author | Nils Adermann <naderman@naderman.de> | 2011-01-13 02:03:16 +0100 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:54 -0500 |
commit | 2e47409e8093284a03c23bb9bd6c8e87f407cb35 (patch) | |
tree | a3236ced2f3d245ba1b6daad8b5de7c5c53b39f0 /phpBB/includes | |
parent | 09b136272b9ec25824f1c72d0148bdfe43a43603 (diff) | |
download | forums-2e47409e8093284a03c23bb9bd6c8e87f407cb35.tar forums-2e47409e8093284a03c23bb9bd6c8e87f407cb35.tar.gz forums-2e47409e8093284a03c23bb9bd6c8e87f407cb35.tar.bz2 forums-2e47409e8093284a03c23bb9bd6c8e87f407cb35.tar.xz forums-2e47409e8093284a03c23bb9bd6c8e87f407cb35.zip |
[feature/system-cron] Rename lock() to acquire and unlock() to release.
PHPBB3-9596
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/lock/db.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/lock/db.php b/phpBB/includes/lock/db.php index 092f4f9789..f5f1b4c6f9 100644 --- a/phpBB/includes/lock/db.php +++ b/phpBB/includes/lock/db.php @@ -80,11 +80,11 @@ class phpbb_lock_db * @return bool true if lock was acquired * false otherwise */ - public function lock() + public function acquire() { if ($this->locked) { - return true; + return false; } if (!isset($this->config[$this->config_name])) @@ -119,15 +119,15 @@ class phpbb_lock_db /** * Releases the lock. * - * The lock must have been previously obtained, that is, lock() call + * The lock must have been previously obtained, that is, acquire() call * was issued and returned true. * * Note: Attempting to release a lock that is already released, - * that is, calling unlock() multiple times, is harmless. + * that is, calling release() multiple times, is harmless. * * @return void */ - public function unlock() + public function release() { if ($this->locked) { |