TasMutex

Scoped lock wrapping an atomic bool.

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.

Static functions

make
shared(TasMutex) make()

Static factory method.

Meta