mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/system-cron] Add phpDoc documentation for phpbb_cron_lock class.
PHPBB3-9596
This commit is contained in:
parent
6fc11184e7
commit
134afe36e2
1 changed files with 14 additions and 0 deletions
|
@ -21,8 +21,20 @@ if (!defined('IN_PHPBB'))
|
||||||
*/
|
*/
|
||||||
class phpbb_cron_lock
|
class phpbb_cron_lock
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Unique identifier for this lock.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
private $cron_id;
|
private $cron_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tries to acquire the cron lock by updating
|
||||||
|
* the 'cron_lock' configuration variable in the database.
|
||||||
|
*
|
||||||
|
* @return bool true if lock was acquired
|
||||||
|
* false otherwise
|
||||||
|
*/
|
||||||
public function lock()
|
public function lock()
|
||||||
{
|
{
|
||||||
global $config, $db;
|
global $config, $db;
|
||||||
|
@ -67,6 +79,8 @@ class phpbb_cron_lock
|
||||||
* Releases cron lock.
|
* Releases cron lock.
|
||||||
*
|
*
|
||||||
* Attempting to release a cron lock that is already released is harmless.
|
* Attempting to release a cron lock that is already released is harmless.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function unlock()
|
public function unlock()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue