commit | f1a24b1f6d61533a7f7b90ce810987c185afc7b8 | [log] [tgz] |
---|---|---|
author | Francesco Vasco <francesco.vasco@lightstreamer.com> | Mon Jul 31 09:13:30 2017 +0200 |
committer | Roman Elizarov <elizarov@gmail.com> | Thu Aug 03 11:09:55 2017 -0700 |
tree | 0ae55587abb0def313ad5b19cea6bbe3b824a249 | |
parent | d0597e7e0bf68773f3535270e4a4b155f1fd9d2e [diff] |
Mutex fairness documentation (#90)
diff --git a/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/sync/Mutex.kt b/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/sync/Mutex.kt index 0543d65..f14a1fe 100644 --- a/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/sync/Mutex.kt +++ b/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/sync/Mutex.kt
@@ -100,6 +100,8 @@ /** * Creates new [Mutex] instance. + * The mutex created is fair: lock is granted in first come, first served order. + * * @param locked initial state of the mutex. */ public fun Mutex(locked: Boolean = false): Mutex = MutexImpl(locked)