InterprocessLock Class

Defines helper methods related to inter-process locking.

Definition

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