PosixSemaphore

Native implementation of a semaphore.

Constructors

this
this(uint count)

Constructs a new Posix Semaphore.

Destructor

~this
~this()

Destructor

Members

Functions

await
bool await(ulong timeout)

Suspends the thread until the semaphore is signaled, or the timeout is reached.

signal
void signal()

Signals the semaphore.

tryAwait
bool tryAwait()

Checks if the semaphore is signalled then awaits on it if is.

Meta