class KLockFile |
|
|
The KLockFile class provides NFS safe lockfiles.
Author Waldo Bastian |
|
|
|
Returns whether the lock is held or not |
|
Attempt to acquire the lock
flags - A set of LockFlag values OR'ed together. |
|
Set the time in seconds after which a lock is considered stale |
|
Return the time in seconds after which a lock is considered stale The default is 30. |
|
Release the lock |
NoBlockFlag | - | Return immediately, do not wait for the lock to become available | |
ForceFlag | - | Automatically remove a lock when a lock is detected that is stale for more than staleTime() seconds. |
LockOK | - | Lock was acquired successfully | |
LockFail | - | The lock could not be acquired because it is held by another process | |
LockError | - | The lock could not be acquired due to an error | |
LockStale | - | A stale lock has been detected |