Opens an existing named semaphore.
Namespace: RTX.ThreadingAssembly: IntervalZero.RTX (in IntervalZero.RTX.dll) Version: 12.0.0.0 (12.0.0.0)
public static RTSemaphore OpenExisting(
string name
)
public static RTSemaphore OpenExisting(
string name
)
Public Shared Function OpenExisting (
name As String
) As RTSemaphore
Public Shared Function OpenExisting (
name As String
) As RTSemaphore
public:
static RTSemaphore^ OpenExisting(
String^ name
)
public:
static RTSemaphore^ OpenExisting(
String^ name
)
Return Value
Type:
RTSemaphoreA
Semaphore object that represents a named system semaphore.
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
Semaphore 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
Semaphore object, even though the objects returned both represent the same named system semaphore.