Mutex class

Mutual exclusion.

Usage:

m = new Mutex();

await m.acquire();
try {
  // critical section
}
finally {
  m.release();
}

Constructors

Mutex()

Properties

hashCode int
The hash code for this object.
no setterinherited
isLocked bool
Indicates if a lock has currently been acquired.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acquire() Future
Acquire a lock
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Release a lock.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited