Function LocalTaskSemaphore.lock
Acquires a lock.
void lock
(
ubyte priority = cast(ubyte)0u
) @safe;
Once the limit of concurrent locks is reached, this method will block until the number of locks drops below the limit.