RTSemaphore OpenExisting Method IntervalZero RTX Managed Code
Opens an existing named semaphore.

Namespace:  RTX.Threading
Assembly:  IntervalZero.RTX (in IntervalZero.RTX.dll) Version: 12.0.0.0 (12.0.0.0)

Syntax

public static RTSemaphore OpenExisting(
	string name
)

Return Value

Type: RTSemaphore
A OnlineSemaphore object that represents a named system semaphore.
Exceptions

Remarks

The OpenExisting method attempts to open only existing named semaphores. If a system semaphore with the specified name does not exist, this method throws an exception instead of creating the system semaphore. It is possible to create multiple OnlineSemaphore objects that represent the same named system semaphore. Two calls to this method with the same value for name do not necessarily return the same OnlineSemaphore object, even though the objects returned both represent the same named system semaphore.
See Also