Mutex

fun Mutex(locked: Boolean = false): Mutex(source)

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.