1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11495] Add owns_lock() method to lock classes

PHPBB3-11495
This commit is contained in:
Joas Schilling
2013-04-30 15:48:29 +02:00
parent 055ee41065
commit 714092ab4e
4 changed files with 47 additions and 0 deletions

View File

@@ -110,6 +110,17 @@ class phpbb_lock_flock
return (bool) $this->lock_fp;
}
/**
* Does this process own the lock?
*
* @return bool true if lock is owned
* false otherwise
*/
public function owns_lock()
{
return (bool) $this->lock_fp;
}
/**
* Releases the lock.
*