Represents a thread synchronization event.
| C# | Visual Basic |
public sealed class EventWaitHandle : WaitHandle
Public NotInheritable Class EventWaitHandle _ Inherits WaitHandle
| All Members | Constructors | Methods | Properties | Fields | |
| Icon | Member | Description |
|---|---|---|
| EventWaitHandle(Boolean, EventResetMode) |
Initializes a newly created EventWaitHandle object, specifying whether the wait
handle is initially signaled, and whether it resets automatically or manually.
| |
| EventWaitHandle(Boolean, EventResetMode, String) |
Initializes a newly created EventWaitHandle object, specifying whether the wait handle is initially signaled, whether it resets automatically or manually, and the name of a system synchronization event.
| |
| EventWaitHandle(Boolean, EventResetMode, String, Boolean%) |
Initializes a newly created EventWaitHandle object, specifying whether the wait handle is initially signaled, whether it resets automatically or manually, the name of a system synchronization event, and a bool variable whose value after the call indicates whether the named system event was created.
| |
| Close()()()() |
releases all resources held by the current EventWaitHandle.
(Overrides WaitHandle.Close()()()().) | |
| CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) | |
| Dispose(Boolean) |
When overridden in a derived class, releases the unmanaged resources used by the WaitHandle, and optionally releases the managed resources.
(Inherited from WaitHandle.) | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an EventWaitHandle to attempt to free resources and perform other cleanup operations before the EventWaitHandle is reclaimed by garbage collection.
(Overrides Object.Finalize()()()().) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLifetimeService()()()() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Handle | Obsolete.
Gets or sets the native operating system handle.
(Inherited from WaitHandle.) | |
| InitializeLifetimeService()()()() |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OpenExisting(String) |
Opens an existing named synchronization event.
| |
| Reset()()()() |
Sets the state of the event to nonsignaled, causing threads to block.
| |
| SafeWaitHandle |
Gets or sets the native operating system handle.
(Inherited from WaitHandle.) | |
| Set()()()() |
Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
| |
| ToString()()()() | (Inherited from Object.) | |
| WaitAny(array<WaitHandle>[]()[][]) |
Waits for any of the elements in the specified array to receive a signal.
| |
| WaitAny(array<WaitHandle>[]()[][], Int32, Boolean) |
Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed integer to measure the time interval, and specifying whether to exit the synchronization domain before the wait.
| |
| WaitOne()()()() |
Blocks the current thread until the current WaitHandle receives a signal.
(Overrides WaitHandle.WaitOne()()()().) | |
| WaitOne(Int32, Boolean) |
Blocks the current thread until the current WaitHandle receives a signal, using 32-bit signed integer to measure the time interval and specifying whether to exit the synchronization domain before the wait.
(Overrides WaitHandle.WaitOne(Int32, Boolean).) | |
| WaitOne(TimeSpan, Boolean) |
Blocks the current thread until the current instance receives a signal, using a TimeSpan to measure the time interval and specifying whether to exit the synchronization domain before the wait.
(Inherited from WaitHandle.) | |
| WaitOne(Int32) |
Blocks the current thread until the current WaitHandle receives a signal, using 32-bit signed integer to measure the time interval.
(Inherited from WaitHandle.) | |
| WaitOne(TimeSpan) |
Blocks the current thread until the current instance receives a signal, using a TimeSpan to measure the time interval.
(Inherited from WaitHandle.) | |
| WaitTimeout |
Indicates that a WaitAny(array<WaitHandle>[]()[][]) operation timed out before any of the wait handles were signaled.
|
The EventWaitHandle class allows threads to communicate with each other by signaling.
Typically, one or more threads block on an EventWaitHandle until an unblocked thread calls the Set()()()() method, releasing one or more of the blocked threads.
| Object | |||
| MarshalByRefObject | |||
| WaitHandle | |||
| EventWaitHandle | |||