Initializes a new instance of SharedEventWaitHandle specifying whether the wait handle is initially signaled, and whether it should reset automatically or manually.
true
to set the initial state to signaled; false
to unsignaled.
An EventResetMode value that determines whether the event resets automatically or manually.
The Memory to use when performing the synchronization operations.
Gets the arbitary data that was provided when the wait handle was created.
Gets the mode determining if the event resets automatically or manually.
An EventResetMode value.
Initializes the base WaitHandle if a derived instance has been created from shared memory.
The Memory that has been used to create the WaitHandle.
Replaces the current value of the wait handle only if that value first equals an expected value.
The value to test the current wait handle value against.
The new value if the current value of the wait handle equals expectedValue
.
The original value of the wait handle.
Returns the current value of the wait handle.
Awakens a given number of sleeping worker threads that are blocked on the current wait handle.
The number of sleeping worker threads to notify.
The number of worker threads that were notified.
Blocks the current worker thread if the value of the wait handle is equal to a given value, and returns only when the wait handle value then changes, or the timeout period is exceeded.
The value that will be tested against the current value of the wait handle.
An optional timeout in milliseconds to wait for the values to change.
An AtomicWaitResult.
Overrides WaitHandle.onWaitSynchronously(...) to wait for the underlying wait handle to become signaled.
The number of milliseconds to wait.
true
if the wait handle became signaled; false
if the timeout period was exceeded.
Sets the state of the event to nonsignaled, causing worker threads to block.
true
if the operation succeeded; otherwise false
.
Sets the state of the event to signaled, allowing one or more blocked worker threads to proceed.
true
if the operation succeeded; otherwise false
.
Blocks the current worker thread indefinitely until the current WaitHandle receives a signal.
true
if the wait handle became signaled; false
if the timeout period was exceeded.
Blocks the current worker thread until the current WaitHandle receives a signal using a timeout to specify the maximum number of milliseconds to wait.
The number of milliseconds to wait.
true
if the wait handle became signaled; false
if the timeout period was exceeded.
Generated using TypeDoc
A shared thread synchronization event.