You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition, the `SegmentQueue` data structure, which emulates an infinite array with fast removing from the middle, is introduced for storing suspended acquirers in semaphore/mutex/channel algorithms.
Fixes#1088
Copy file name to clipboardExpand all lines: binary-compatibility-validator/reference-public-api/kotlinx-coroutines-core.txt
+13
Original file line number
Diff line number
Diff line change
@@ -1008,6 +1008,19 @@ public final class kotlinx/coroutines/sync/MutexKt {
1008
1008
public static synthetic fun withLock$default (Lkotlinx/coroutines/sync/Mutex;Ljava/lang/Object;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
1009
1009
}
1010
1010
1011
+
public abstract interface class kotlinx/coroutines/sync/Semaphore {
1012
+
public abstract fun acquire (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
1013
+
public abstract fun getAvailablePermits ()I
1014
+
public abstract fun release ()V
1015
+
public abstract fun tryAcquire ()Z
1016
+
}
1017
+
1018
+
public final class kotlinx/coroutines/sync/SemaphoreKt {
1019
+
public static final fun Semaphore (II)Lkotlinx/coroutines/sync/Semaphore;
1020
+
public static synthetic fun Semaphore$default (IIILjava/lang/Object;)Lkotlinx/coroutines/sync/Semaphore;
1021
+
public static final fun withPermit (Lkotlinx/coroutines/sync/Semaphore;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
1022
+
}
1023
+
1011
1024
public final class kotlinx/coroutines/test/TestCoroutineContext : kotlin/coroutines/CoroutineContext {
0 commit comments