Class RecursiveTaskMutex
Recursive mutex implementation for tasks.
This mutex type can be used in exchange for a core
, but
does not block the event loop when contention happens.
Constructors
Name | Description |
---|---|
this
(o)
|
|
this
()
|
|
this
(o)
|
|
this
()
|
Methods
Name | Description |
---|---|
lock
()
|
|
lock
()
|
|
tryLock
()
|
|
tryLock
()
|
|
unlock
()
|
|
unlock
()
|
|
tryLock
()
|
|
unlock
()
|
Notice
Because this class is annotated nothrow
, it cannot be interrupted
using Task
. The corresponding
InterruptException
will be deferred until the next blocking
operation yields the event loop.
Use InterruptibleRecursiveTaskMutex
as an alternative that can be
interrupted.
See Also
TaskMutex
, core