Acquires a lock.
byte priority = cast(byte)0
) nothrow @safe;
Once the limit of concurrent locks is reached, this method will block until the number of locks drops below the limit.
|Optional priority modifier - any lock requests with a higher priority will be served before all requests with a lower priority, FIFO order is applied within a priority class.