InterprocessLock Class

Defines helper methods related to inter-process locking.

Definition

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