RAIILocker

A RAII wrapper for a lock

struct RAIILocker (
LockType
string acquireName = "acquire"
string releaseName = "release"
) {}

Destructor

~this
~this()

Auto unlocking destructor

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

isLocked
bool isLocked()

Report whether the container is currently locked

Parameters

LockType

the type of lock to define over

acquireName

the name of the function to call to acquire the lock

releaseName

the name of the function to call to release the lock

Meta