Class WakeSource
Releases a runtime owner thread parked in Pump(TimeSpan, TimeSpan?).
public sealed class WakeSource : IDisposable
- Inheritance
-
WakeSource
- Implements
- Inherited Members
Remarks
A wake source is usable from any thread. It stays usable after its runtime closes, and signalling it then does nothing.
Properties
IsClosed
Whether this wrapper has released its native handle.
public bool IsClosed { get; }
Property Value
Methods
Close()
Releases the wake source.
public void Close()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Signal()
Sets the runtime's wake flag and releases the parked owner thread.
public void Signal()
Remarks
A signal raised while the owner thread is running sets the wake flag, so the next Pump(TimeSpan, TimeSpan?) returns without parking. Signalling after the runtime closes succeeds and does nothing.