Function set [src]

Marks the ResetEvent as "set" and unblocks any threads in wait() or timedWait() to observe the new state. The ResetEvent says "set" until reset() is called, making future set() calls do nothing semantically. The memory accesses before set() can be said to happen before isSet() returns true or wait()/timedWait() return successfully.

Prototype

pub fn set(self: *ResetEvent) void

Parameters

self: *ResetEvent

Source

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