A simple file based locking mechanism.
package | Gems |
---|---|
subpackage | Util |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.4.4 |
__construct(string $lockFileName)
string
The name of the lockfile
getLockTime() : \MUtil_Date
\MUtil_Date
or null when not locked.isLocked() : boolean
boolean
lock() : \Gems_Util_LockFile
\Gems_Util_LockFile
(continuation pattern)reverse() : \Gems_Util_LockFile
\Gems_Util_LockFile
(continuation pattern)unlock() : \Gems_Util_LockFile
\Gems_Util_LockFile
(continuation pattern)$lockFileName : string