Function Semaphore.this

Construct a semaphore with given capacity.

ref this (
  ulong capacity,
  ulong used = 0LU
) pure nothrow @nogc @safe;