Mutex

fun Mutex(locked: Boolean = false): Mutex

Creates a Mutex instance. The mutex created is fair: lock is granted in first come, first served order.

Parameters

locked

initial state of the mutex.

Sources

common source
Link copied to clipboard