Skip to content

Commit dc35dbd

Browse files
committed
Minor comment
1 parent 6be021e commit dc35dbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/locks/SynchronousMutex.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import kotlin.time.Duration
1313
*
1414
* When a thread calls [lock] while another thread is locked, it will suspend until the lock is released.
1515
* 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.
1617
*
1718
* It is reentrant, meaning the lock holding thread can call [lock] multiple times without suspending.
1819
* To release the lock (after multiple [lock] calls) an equal number of [unlock] calls are required.

0 commit comments

Comments
 (0)