Struct Waitq

Struct Documentation

struct Waitq

Public Functions

Result<Void, Error> await(uint64_t timeout)

Wait for the wait queue to be triggered.

Parameters:

timeout – The timeout in microseconds, any value lower or equal to 0 means no timeout

Result<Void, Error> wake(int n)

Wake one or more threads from the wait queue.

Parameters:

n – The number of threads to wake

Public Members

Spinlock lock
List<Thread, &Thread::wait_link> waiters