C# Класс Kimono.KLockFile

Наследование: Object, IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
interceptor Qyoto.SmokeInvocation

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
CreateProxy ( ) : void
KLockFile ( Type dummy ) : System

Описание методов

CreateProxy() защищенный Метод

protected CreateProxy ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetLockInfo() публичный Метод

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
Результат bool

IsLocked() публичный Метод

Returns whether the lock is held or not
public IsLocked ( ) : bool
Результат bool

KLockFile() защищенный Метод

protected KLockFile ( Type dummy ) : System
dummy System.Type
Результат System

KLockFile() публичный Метод

public KLockFile ( string file ) : System
file string
Результат System

KLockFile() публичный Метод

public KLockFile ( string file, Kimono.KComponentData componentName ) : System
file string
componentName Kimono.KComponentData
Результат System

Lock() публичный Метод

public Lock ( ) : KLockFile.LockResult
Результат KLockFile.LockResult

Lock() публичный Метод

Attempt to acquire the lock name="flags" A set of values OR'ed together.
public Lock ( uint flags ) : KLockFile.LockResult
flags uint
Результат KLockFile.LockResult

SetStaleTime() публичный Метод

Set the time in seconds after which a lock is considered stale
public SetStaleTime ( int _staleTime ) : void
_staleTime int
Результат void

StaleTime() публичный Метод

Return the time in seconds after which a lock is considered stale The default is 30.
public StaleTime ( ) : int
Результат int

Unlock() публичный Метод

Release the lock
public Unlock ( ) : void
Результат void

Описание свойств

interceptor защищенное свойство

protected SmokeInvocation,Qyoto interceptor
Результат Qyoto.SmokeInvocation