Метод |
Описание |
|
Dispose ( ) : void |
|
|
GetLockInfo ( int &pid, StringBuilder hostname, StringBuilder appname ) : bool |
Returns the pid, hostname and appname of the process holding the lock after the lock functon has returned with LockStale. |
|
IsLocked ( ) : bool |
Returns whether the lock is held or not |
|
KLockFile ( string file ) : System |
|
|
KLockFile ( string file, Kimono.KComponentData componentName ) : System |
|
|
Lock ( ) : KLockFile.LockResult |
|
|
Lock ( uint flags ) : KLockFile.LockResult |
Attempt to acquire the lock name="flags" A set of values OR'ed together. |
|
SetStaleTime ( int _staleTime ) : void |
Set the time in seconds after which a lock is considered stale |
|
StaleTime ( ) : int |
Return the time in seconds after which a lock is considered stale The default is 30. |
|
Unlock ( ) : void |
Release the lock |
|