mecca.reactor.sync.lock

Implements a reactor aware mutex

Members

Aliases

ExclusiveLocker
alias ExclusiveLocker = RAIILocker!(SharedLock, "acquireExclusive", "releaseExclusive")

Locker wrapper for a SharedLock with an exclusive lock

Locker
alias Locker = RAIILocker!(Lock)

Locker wrapper for the standard lock

SharedLocker
alias SharedLocker = RAIILocker!(SharedLock, "acquireShared", "releaseShared")

Locker wrapper for a SharedLock with a shared lock

Structs

Lock
struct Lock

A reactor aware non-recursive simple mutex.

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

A RAII wrapper for a lock

SharedLock
struct SharedLock

Shared access lock

UnfairSharedLock
struct UnfairSharedLock

Unfair shared access lock

Meta

Authors

Shachar Shemesh