Mutex

A mutually exclusive lock.

Constructors

this
this()

Constructs a new Mutex.

Destructor

~this
~this()

Destructor

Members

Functions

lock
void lock()

Increments the internal lock counter.

tryLock
bool tryLock()

Tries to increment the internal lock counter.

unlock
void unlock()

Decrements the internal lock counter, If the counter reaches 0, the lock is released.

Properties

nativeHandle
NativeMutex nativeHandle [@property getter]

The native implementation defined handle of the mutex.

Meta