DoxigAlpha

reset

Unmarks the ResetEvent from its "set" state if set() was called previously. It is undefined behavior is reset() is called while threads are blocked in wait() or timedWait(). Concurrent calls to set(), isSet() and reset() are allowed.

Function parameters

Parameters

#
self:*ResetEvent

Returns if the ResetEvent was set().

Functions

#
isSet
Returns if the ResetEvent was set().
wait
Block's the callers thread until the ResetEvent is set().
timedWait
Block's the callers thread until the ResetEvent is set(), or until the corresponding timeout expires.
set
Marks the ResetEvent as "set" and unblocks any threads in `wait()` or `timedWait()` to observe the new state.
reset
Unmarks the ResetEvent from its "set" state if set() was called previously.

Source

Implementation

#
pub fn reset(self: *ResetEvent) void {
    self.impl.reset();
}