NamedSemaphoreWaitOne(TimeSpan, Boolean) Method
Blocks the current thread until the current instance receives a signal, using a
TimeSpan
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.171 -- Release Build+4f4d518944b843c059d40b523747cd410a7c216d
function WaitOne(timeout, exitContext);
- timeout TimeSpan
-
A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan
that represents -1 milliseconds 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.