InterprocessLock Class

Defines helper methods related to inter-process locking.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
public static class InterprocessLock
Inheritance
Object    InterprocessLock

Methods

GetNamedMutex(Boolean) Gets a uniquely named inter-process Mutex associated with the running application, typically used to detect whether an instance of the application is already running.
GetNamedMutex(String, Boolean) Gets a uniquely named inter-process Mutex associated with the specified name that identifies a source object needing concurrency locking.
GetNamedSemaphore(Boolean, Int32, Int32) Gets a uniquely named inter-process NamedSemaphore associated with the running application, typically used to detect whether some number of instances of the application are already running.
GetNamedSemaphore(String, Int32, Int32, Boolean) Gets a uniquely named inter-process NamedSemaphore associated with the specified name that identifies a source object needing concurrency locking.

Fields

DefaultMutexGlobal Default value for Mutex global flag.
DefaultSemaphoreGlobal Default value for NamedSemaphore global flag.
DefaultSemaphoreInitialCount Default value for NamedSemaphore initial count.
DefaultSemaphoreMaximumCount Default value for NamedSemaphore maximum count.

See Also