Semaphore.open

Call this function before using the semaphore.

You can skip calling open if the semaphore is constructed explicitly

struct Semaphore
pure nothrow @safe @nogc
void
open
(
size_t capacity
,
size_t used = 0
)

Parameters

capacity size_t

maximal value the semaphore can grow to.

used size_t

initial number of obtained locks. Default of zero means that the semaphore is currently unused.

Meta