Home
last modified time | relevance | path

Searched refs:withLock (Results 1 – 24 of 24) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DConflatedChannel.kt26 override val isEmpty: Boolean get() = lock.withLock { isEmptyImpl } in <lambda>()
35 lock.withLock { in offerInternal()
48 return@withLock in offerInternal()
63 lock.withLock { in offerSelectInternal()
72 return@withLock in offerSelectInternal()
96 lock.withLock { in pollInternal()
107 lock.withLock { in pollSelectInternal()
119 lock.withLock { in onCancelIdempotent()
134 override fun enqueueReceiveInternal(receive: Receive<E>): Boolean = lock.withLock { in <lambda>()
DArrayChannel.kt52 override val isFull: Boolean get() = lock.withLock { isFullImpl } in <lambda>()
53 override val isEmpty: Boolean get() = lock.withLock { isEmptyImpl } in <lambda>()
54 override val isClosedForReceive: Boolean get() = lock.withLock { super.isClosedForReceive } in <lambda>()
59 lock.withLock { in offerInternal()
76 return@withLock in offerInternal()
91 lock.withLock { in offerSelectInternal()
105 return@withLock in offerSelectInternal()
130 override fun enqueueSend(send: Send): Any? = lock.withLock { in <lambda>()
182 lock.withLock { in pollInternal()
222 lock.withLock { in pollSelectInternal()
[all …]
DArrayBroadcastChannel.kt94 bufferLock.withLock { in offerInternal()
111 bufferLock.withLock { in offerSelectInternal()
146 bufferLock.withLock { in updateHead()
181 return@withLock // go out of lock to wakeup this sender in updateHead()
227 subLock.withLock { in elementAt()
277 val result = subLock.withLock { in elementAt()
306 val result = subLock.withLock { in elementAt()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DSimpleLockTest.kt12 fun withLock() { in <lambda>() method in kotlinx.atomicfu.test.SimpleLockTest
14 val result = lock.withLock { in <lambda>()
24 fun <T> withLock(block: () -> T): T { in withLock() method in kotlinx.atomicfu.test.SimpleLock
DReentrantLockFieldTest.kt12 lock.withLock { in testLock()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DConcurrent.kt10 import kotlin.concurrent.withLock as withLockJvm
17 internal actual inline fun <T> ReentrantLock.withLock(action: () -> T) = this.withLockJvm(action) in subscriberList() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/sync/
DMutexTest.kt55 mutex.withLock { in <lambda>()
68 mutex.withLock { in testUnconfinedStackOverflow()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/test/
DTaskTest.kt79 lock.withLock { 42 } in <lambda>()
136 lock.withLock { throw TestException("something went wrong") } in <lambda>()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/bytecode_test/
DReentrantLockTest.kt12 lock.withLock { in testLockField()
/external/kotlinx.atomicfu/atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.common.kt13 public expect inline fun <T> ReentrantLock.withLock(block: () -> T): T method
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/internal/
DConcurrent.kt9 internal actual inline fun <T> ReentrantLock.withLock(action: () -> T) = action() in withLock() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/internal/
DConcurrent.kt9 internal actual inline fun <T> ReentrantLock.withLock(action: () -> T) = action() in withLock() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DConcurrent.common.kt22 internal expect inline fun <T> ReentrantLock.withLock(action: () -> T): T method
/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.kt18 public actual inline fun <T> ReentrantLock.withLock(block: () -> T) = block() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-sync-06.kt34 mutex.withLock { in <lambda>()
/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.kt15 public actual inline fun <T> ReentrantLock.withLock(block: () -> T): T { in reentrantLock() method
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/future/
DFutureTest.kt217 lock.withLock { 42 } in <lambda>()
259 lock.withLock { throw TestException("something went wrong") } in <lambda>()
/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.kt163 public actual inline fun <T> ReentrantLock.withLock(block: () -> T): T { in lock() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DMutex.kt109 public suspend inline fun <T> Mutex.withLock(owner: Any? = null, action: () -> T): T { in Mutex() method
/external/dokka/
Dpackage-list61 …dokka.location:kotlin.concurrent$withLock(java.util.concurrent.locks.Lock, kotlin.Function0((kotli…
/external/kotlinx.coroutines/site/
Dstdlib.package.list61 …dokka.location:kotlin.concurrent$withLock(java.util.concurrent.locks.Lock, kotlin.Function0((kotli…
/external/kotlinx.atomicfu/
DREADME.md297 use `lock`/`tryLock`/`unlock` functions or `lock.withLock { ... }` extension function similarly to …
/external/kotlinx.coroutines/
DCHANGES.md914 * `withLock` and `consumeEach` functions are now inline suspend functions.
1023 * Renamed `Mutex.withMutex` to `Mutex.withLock`, old name is deprecated.
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api1283 …public static final fun withLock (Lkotlinx/coroutines/sync/Mutex;Ljava/lang/Object;Lkotlin/jvm/fun…
1284 …public static synthetic fun withLock$default (Lkotlinx/coroutines/sync/Mutex;Ljava/lang/Object;Lko…