mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00

committed by
GitHub

parent
4e2cd24399
commit
03052621b7
@ -98,10 +98,11 @@ abstract class Mutex extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a lock is currently acquired
|
* Checks if a lock is acquired by the current process.
|
||||||
|
* Note that it returns false if the mutex is acquired in another process.
|
||||||
*
|
*
|
||||||
* @param string $name of the lock to check
|
* @param string $name of the lock to check.
|
||||||
* @return bool Returns true if currently acquired
|
* @return bool Returns true if currently acquired.
|
||||||
* @since 2.0.36
|
* @since 2.0.36
|
||||||
*/
|
*/
|
||||||
public function isAcquired($name)
|
public function isAcquired($name)
|
||||||
|
Reference in New Issue
Block a user