C# Class Kimono.KLockFile

Inheritance: Object, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross

Protected Properties

Свойство Type Description
interceptor Qyoto.SmokeInvocation

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
CreateProxy ( ) : void
KLockFile ( Type dummy ) : System

Method Details

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetLockInfo() public méthode

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
Résultat bool

IsLocked() public méthode

Returns whether the lock is held or not
public IsLocked ( ) : bool
Résultat bool

KLockFile() protected méthode

protected KLockFile ( Type dummy ) : System
dummy System.Type
Résultat System

KLockFile() public méthode

public KLockFile ( string file ) : System
file string
Résultat System

KLockFile() public méthode

public KLockFile ( string file, Kimono.KComponentData componentName ) : System
file string
componentName Kimono.KComponentData
Résultat System

Lock() public méthode

public Lock ( ) : KLockFile.LockResult
Résultat KLockFile.LockResult

Lock() public méthode

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

SetStaleTime() public méthode

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

StaleTime() public méthode

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

Unlock() public méthode

Release the lock
public Unlock ( ) : void
Résultat void

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
Résultat Qyoto.SmokeInvocation