vibe-core ~master (2022-04-01T19:24:37Z)
Dub
Repo
ScopedMutexLock
vibe
core
sync
RAII lock for the Mutex class.
struct
ScopedMutexLock (
M
)
if
(
is
(
M
:
Mutex
) ||
is
(
M
:
Lockable
)
) {
this(this)
;
this
(M mutex, LockMode mode);
~this
();
bool
locked
[@property getter];
void
unlock
();
bool
tryLock
();
void
lock
();
}
Constructors
this
this
(M mutex, LockMode mode)
Undocumented in source.
Destructor
~this
~this
()
Undocumented in source.
Postblit
this(this)
this(this)
Undocumented in source.
Members
Functions
lock
void
lock
()
Undocumented in source.
tryLock
bool
tryLock
()
Undocumented in source.
unlock
void
unlock
()
Undocumented in source.
Properties
locked
bool
locked
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
vibe
core
sync
classes
InterruptibleRecursiveTaskMutex
InterruptibleTaskCondition
InterruptibleTaskMutex
InterruptibleTaskReadWriteMutex
LocalTaskSemaphore
RecursiveTaskMutex
TaskCondition
TaskMutex
TaskReadWriteMutex
enums
LockMode
functions
createManualEvent
createMonitor
createSharedManualEvent
performLocked
scopedMutexLock
interfaces
Lockable
structs
LocalManualEvent
ManualEvent
Monitor
ScopedMutexLock
RAII lock for the Mutex class.