vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function LocalTaskSemaphore.lock

Acquires a lock.

void 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.

Parameters

NameDescription
priority 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.
Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2019 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.