Flock based lock implementation.
- see http://php.net/manual/en/function.flock.php
- experimental The experimental flag means that while we believe this method or class is ready for use, it may change before release in backwards- incompatible ways. Please use with caution, and test thoroughly when upgrading.
|public Google\Cloud\Core\Lock\FlockLock::FILE_PATH_TEMPLATE = '%s/%s.lock'|
|public __construct( $fileName, array $options = )|
|public acquire(array $options = )|
Acquires a lock that will block until released.
Releases the lock.
|public synchronize(callable $func, array $options = )|
Execute a callable within a lock. If an exception is caught during execution of the callable the lock will first be released before throwing it.
Initializes the handle.
|private lockType(array $options)|