We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6be021e commit dc35dbdCopy full SHA for dc35dbd
atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/locks/SynchronousMutex.kt
@@ -13,6 +13,7 @@ import kotlin.time.Duration
13
*
14
* When a thread calls [lock] while another thread is locked, it will suspend until the lock is released.
15
* When multiple threads are waiting for the lock, they will acquire it in a fair order (first in first out).
16
+ * On JVM, a [lock] call can skip the queue if it happens in between a thread releasing and the first in queue acquiring.
17
18
* It is reentrant, meaning the lock holding thread can call [lock] multiple times without suspending.
19
* To release the lock (after multiple [lock] calls) an equal number of [unlock] calls are required.
0 commit comments