std1.0.0-beta-7 SafeC docs

std :: async::sync

Struct std::AsyncNotify

#include <std/async/sync.h> source

struct AsyncNotify {
    int permit;
    int generation;
    int pending_one;
    struct WaitList waiters;
    struct Spinlock lk;
}

Fields

§int permitsource
§int generationsource

bumped by notify_waiters

§int pending_onesource

notify_one()s handed to woken waiters

§struct WaitList waiterssource

Methods

§static struct AsyncNotify new()source · definition
§struct Notified notified()source · definition
§void notify_one()source · definition
§void notify_waiters()source · definition