InterprocessLock Class

Defines helper methods related to inter-process locking.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.147 -- Release Build+759c9d29b79c81f10905de8f58b653be932045f0
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