vibe.d beta banner
get vibe.d
0.7.31

Function LocalTaskSemaphore.tryLock

Try to acquire a lock.

bool tryLock ();

If a lock cannot be acquired immediately, returns false and leaves the semaphore in its previous state.

Returns

true is returned iff the number of available locks is greater than one.

Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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