class KLockFile |
|
\class KLockFile klockfile.h The KLockFile class provides NFS safe lockfiles.
Author Waldo Bastian |
|
|
|
Returns the pid, hostname and appname of the process holding the lock after the lock functon has returned with LockStale. Returns false if the pid and hostname could not be determined |
|
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 |
Return immediately, do not wait for the lock to become available
NoBlockFlag | - 1 | - | ||
ForceFlag | - 2 | - |
Lock was acquired successfully
LockOK | - 0 | - | ||
LockFail | - | - | ||
LockError | - | - | ||
LockStale | - | - |