Lock.acquire

Acquire a lock.

This method blocks until the lock is unlocked, then sets it to locked and returns $(D_KEYWORD true).

class Lock
bool
acquire
()

Meta