SimpleMutex class
A simple non-reentrant mutex implementation.
- Inheritance
-
- Object
- SimpleMutexInterface
- SimpleMutex
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
configureQueue(
{required CancellationToken? cancellationToken, required Duration? timeout}) → Future< void> -
Configures the queue for waiting threads.
inherited
-
isHeldByCurrent(
) → bool -
isLocked(
) → bool -
Checks if the mutex is currently locked.
override
-
isQueueNotEmpty(
) → bool -
Checks if the wait queue is not empty.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
protect<
T> (Future< T> action(), {CancellationToken? cancellationToken, Duration? timeout}) → Future<T> -
Executes the provided
action
within a protected context.override -
removeFirstItemOfQueue(
) → Completer< void> -
Removes and returns the first item from the wait queue.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited