InterprocessLock Class

Defines helper methods related to inter-process locking.

Definition

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