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, a `SegmentQueue` data structure, which emulates an infinite array with fast removing from the middle, is introduced for storing suspended acquirers in the semaphore algorithm.
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
@@ -981,6 +981,19 @@ public final class kotlinx/coroutines/sync/MutexKt {
981
981
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;
982
982
}
983
983
984
+
public abstract interface class kotlinx/coroutines/sync/Semaphore {
985
+
public abstract fun acquire (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
986
+
public abstract fun getAvailablePermits ()I
987
+
public abstract fun release ()V
988
+
public abstract fun tryAcquire ()Z
989
+
}
990
+
991
+
public final class kotlinx/coroutines/sync/SemaphoreKt {
992
+
public static final fun Semaphore (II)Lkotlinx/coroutines/sync/Semaphore;
993
+
public static synthetic fun Semaphore$default (IIILjava/lang/Object;)Lkotlinx/coroutines/sync/Semaphore;
994
+
public static final fun withSemaphore (Lkotlinx/coroutines/sync/Semaphore;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
995
+
}
996
+
984
997
public final class kotlinx/coroutines/test/TestCoroutineContext : kotlin/coroutines/CoroutineContext {
0 commit comments