NoLock
class NoLock implementsSharedLockInterface
A non locking lock.
This can be used to disable locking in classes requiring a lock.
Methods
Acquires the lock for reading. If the lock is acquired by someone else in write mode, the parameter blocking
determines whether or not the call should block until the release of the lock.
Acquires the lock. If the lock is acquired by someone else, the parameter blocking
determines whether or not
the call should block until the release of the lock.
Increase the duration of an acquired lock.
Returns whether or not the lock is acquired.
Release the lock.
No description
Returns the remaining lifetime in seconds.
Details
bool
acquireRead(bool$blocking =false)
Acquires the lock for reading. If the lock is acquired by someone else in write mode, the parameter blocking
determines whether or not the call should block until the release of the lock.