C# Class Kimono.KLockFile

Inheritance: Object, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross

Protected Properties

Property Type Description
interceptor Qyoto.SmokeInvocation

Public Methods

Method Description
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

Protected Methods

Method Description
CreateProxy ( ) : void
KLockFile ( Type dummy ) : System

Method Details

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetLockInfo() public method

Returns the pid, hostname and appname of the process holding the lock after the lock functon has returned with LockStale.
public GetLockInfo ( int &pid, StringBuilder hostname, StringBuilder appname ) : bool
pid int
hostname StringBuilder
appname StringBuilder
return bool

IsLocked() public method

Returns whether the lock is held or not
public IsLocked ( ) : bool
return bool

KLockFile() protected method

protected KLockFile ( Type dummy ) : System
dummy System.Type
return System

KLockFile() public method

public KLockFile ( string file ) : System
file string
return System

KLockFile() public method

public KLockFile ( string file, Kimono.KComponentData componentName ) : System
file string
componentName Kimono.KComponentData
return System

Lock() public method

public Lock ( ) : KLockFile.LockResult
return KLockFile.LockResult

Lock() public method

Attempt to acquire the lock name="flags" A set of values OR'ed together.
public Lock ( uint flags ) : KLockFile.LockResult
flags uint
return KLockFile.LockResult

SetStaleTime() public method

Set the time in seconds after which a lock is considered stale
public SetStaleTime ( int _staleTime ) : void
_staleTime int
return void

StaleTime() public method

Return the time in seconds after which a lock is considered stale The default is 30.
public StaleTime ( ) : int
return int

Unlock() public method

Release the lock
public Unlock ( ) : void
return void

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
return Qyoto.SmokeInvocation