SMutex

Scoped wrapper for a shared(core.sync.mutex.Mutex).

Members

Functions

locked
void locked(void delegate() dg)

Lock, call dg(), then unlock.

tryLocked
bool tryLocked(void delegate() dg)

Attempt to lock, and if successful, call dg() then unlock.

Properties

unshared
Mutex unshared [@property getter]

Static functions

make
shared(SMutex) make(Args args)

Static factory method.

Meta