Fix #18611: Add note about isAcquired() behavior to Mutex (#18615)

This commit is contained in:
Alexander Makarov
2021-04-24 15:43:48 +03:00
committed by GitHub
parent 4e2cd24399
commit 03052621b7

View File

@ -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
* @return bool Returns true if currently acquired
* @param string $name of the lock to check.
* @return bool Returns true if currently acquired.
* @since 2.0.36
*/
public function isAcquired($name)