NamedSemaphoreWaitOne(Int32, Boolean) Method
Blocks the current thread until the current
NamedSemaphore receives a signal, using a
32-bit signed integer to specify the time interval and specifying whether to exit the synchronization
domain before the wait.
Namespace: Gemstone.ThreadingAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public override bool WaitOne(
int millisecondsTimeout,
bool exitContext
)
Public Overrides Function WaitOne (
millisecondsTimeout As Integer,
exitContext As Boolean
) As Boolean
public:
virtual bool WaitOne(
int millisecondsTimeout,
bool exitContext
) override
function WaitOne(millisecondsTimeout, exitContext);
- millisecondsTimeout Int32
-
The number of milliseconds to wait, or Infinite (-1) to wait indefinitely.
- exitContext Boolean
- true to exit the synchronization domain for the context before the wait (if in a synchronized context),
and reacquire it afterward; otherwise, false.
Booleantrue if the current instance receives a signal; otherwise,
false.