Home
last modified time | relevance | path

Searched refs:ReentrantLock (Results 1 – 25 of 54) sorted by relevance

123

/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.kt10 public actual inline fun reentrantLock() = ReentrantLock() in reentrantLock()
12 public actual typealias ReentrantLock = java.util.concurrent.locks.ReentrantLock in reentrantLock() typealias
15 public actual inline fun <T> ReentrantLock.withLock(block: () -> T): T { in reentrantLock()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DMonitor.java26 import java.util.concurrent.locks.ReentrantLock;
334 private final ReentrantLock lock;
359 this.lock = new ReentrantLock(fair); in Monitor()
375 final ReentrantLock lock = this.lock; in enter()
437 final ReentrantLock lock = this.lock; in enterWhen()
468 final ReentrantLock lock = this.lock; in enterWhen()
519 final ReentrantLock lock = this.lock; in enterWhenUninterruptibly()
548 final ReentrantLock lock = this.lock; in enterWhenUninterruptibly()
613 final ReentrantLock lock = this.lock; in enterIf()
662 final ReentrantLock lock = this.lock; in enterIfInterruptibly()
[all …]
DCycleDetectingLockFactory.java41 import java.util.concurrent.locks.ReentrantLock;
240 public ReentrantLock newReentrantLock(String lockName) { in newReentrantLock()
248 public ReentrantLock newReentrantLock(String lockName, boolean fair) { in newReentrantLock()
250 ? new ReentrantLock(fair) in newReentrantLock()
405 public ReentrantLock newReentrantLock(E rank) { in newReentrantLock()
417 public ReentrantLock newReentrantLock(E rank, boolean fair) { in newReentrantLock()
419 ? new ReentrantLock(fair) in newReentrantLock()
736 final class CycleDetectingReentrantLock extends ReentrantLock implements CycleDetectingLock {
DAbstractScheduledService.java34 import java.util.concurrent.locks.ReentrantLock;
180 private final ReentrantLock lock = new ReentrantLock();
463 private final ReentrantLock lock = new ReentrantLock();
/external/guava/guava/src/com/google/common/util/concurrent/
DMonitor.java28 import java.util.concurrent.locks.ReentrantLock;
337 private final ReentrantLock lock;
362 this.lock = new ReentrantLock(fair); in Monitor()
405 final ReentrantLock lock = this.lock;
478 final ReentrantLock lock = this.lock;
522 final ReentrantLock lock = this.lock;
573 final ReentrantLock lock = this.lock;
613 final ReentrantLock lock = this.lock;
678 final ReentrantLock lock = this.lock;
738 final ReentrantLock lock = this.lock;
[all …]
DCycleDetectingLockFactory.java41 import java.util.concurrent.locks.ReentrantLock;
240 public ReentrantLock newReentrantLock(String lockName) { in newReentrantLock()
248 public ReentrantLock newReentrantLock(String lockName, boolean fair) { in newReentrantLock()
250 ? new ReentrantLock(fair) in newReentrantLock()
405 public ReentrantLock newReentrantLock(E rank) { in newReentrantLock()
417 public ReentrantLock newReentrantLock(E rank, boolean fair) { in newReentrantLock()
419 ? new ReentrantLock(fair) in newReentrantLock()
735 final class CycleDetectingReentrantLock extends ReentrantLock implements CycleDetectingLock {
DAbstractScheduledService.java36 import java.util.concurrent.locks.ReentrantLock;
209 private final ReentrantLock lock = new ReentrantLock();
504 private final ReentrantLock lock = new ReentrantLock();
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java26 import java.util.concurrent.locks.ReentrantLock;
39 private ReentrantLock lockA;
40 private ReentrantLock lockB;
41 private ReentrantLock lockC;
48 private ReentrantLock lock1;
49 private ReentrantLock lock2;
50 private ReentrantLock lock3;
51 private ReentrantLock lock01;
52 private ReentrantLock lock02;
53 private ReentrantLock lock03;
[all …]
DStripedTest.java37 import java.util.concurrent.locks.ReentrantLock;
58 return new ReentrantLock(true); in strongImplementations()
66 return new ReentrantLock(true); in strongImplementations()
85 return new ReentrantLock();
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java26 import java.util.concurrent.locks.ReentrantLock;
39 private ReentrantLock lockA;
40 private ReentrantLock lockB;
41 private ReentrantLock lockC;
48 private ReentrantLock lock1;
49 private ReentrantLock lock2;
50 private ReentrantLock lock3;
51 private ReentrantLock lock01;
52 private ReentrantLock lock02;
53 private ReentrantLock lock03;
[all …]
DStripedTest.java37 import java.util.concurrent.locks.ReentrantLock;
58 return new ReentrantLock(true); in strongImplementations()
66 return new ReentrantLock(true); in strongImplementations()
85 return new ReentrantLock();
/external/kotlinx.atomicfu/atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.common.kt5 public expect fun reentrantLock(): ReentrantLock in reentrantLock()
7 public expect class ReentrantLock { in reentrantLock() class
13 public expect inline fun <T> ReentrantLock.withLock(block: () -> T): T
/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.kt6 public val Lock = ReentrantLock()
12 public actual class ReentrantLock { in reentrantLock() class
18 public actual inline fun <T> ReentrantLock.withLock(block: () -> T) = block()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DConcurrent.kt15 internal actual typealias ReentrantLock = java.util.concurrent.locks.ReentrantLock in subscriberList() typealias
17 internal actual inline fun <T> ReentrantLock.withLock(action: () -> T) = this.withLockJvm(action) in subscriberList()
/external/guava/android/guava-tests/benchmark/com/google/common/util/concurrent/
DCycleDetectingLockFactoryBenchmark.java23 import java.util.concurrent.locks.ReentrantLock;
44 plainLocks[i] = new ReentrantLock(); in setUp()
54 lockAndUnlock(new ReentrantLock(), reps); in unorderedPlainLocks()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DCycleDetectingLockFactoryBenchmark.java23 import java.util.concurrent.locks.ReentrantLock;
44 plainLocks[i] = new ReentrantLock(); in setUp()
54 lockAndUnlock(new ReentrantLock(), reps); in unorderedPlainLocks()
/external/easymock/src/org/easymock/internal/
DReplayState.java20 import java.util.concurrent.locks.ReentrantLock;
30 private final ReentrantLock lock = new ReentrantLock();
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/internal/
DConcurrent.kt7 internal actual typealias ReentrantLock = NoOpLock typealias
9 internal actual inline fun <T> ReentrantLock.withLock(action: () -> T) = action() in withLock()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/internal/
DConcurrent.kt7 internal actual typealias ReentrantLock = NoOpLock typealias
9 internal actual inline fun <T> ReentrantLock.withLock(action: () -> T) = action() in withLock()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DConcurrent.common.kt17 internal expect class ReentrantLock() { in subscriberList() class
22 internal expect inline fun <T> ReentrantLock.withLock(action: () -> T): T
/external/junit/src/main/java/org/junit/internal/requests/
DMemoizingRequest.java4 import java.util.concurrent.locks.ReentrantLock;
10 private final Lock runnerLock = new ReentrantLock();
/external/apache-http/src/org/apache/http/client/methods/
DHttpRequestBase.java37 import java.util.concurrent.locks.ReentrantLock;
77 this.abortLock = new ReentrantLock(); in HttpRequestBase()
178 clone.abortLock = new ReentrantLock(); in clone()
/external/libchrome/base/test/android/java/src/org/chromium/base/
DMultiprocessTestClientLauncher.java30 import java.util.concurrent.locks.ReentrantLock;
116 private final ReentrantLock mConnectedLock = new ReentrantLock();
125 private final ReentrantLock mMainReturnCodeLock = new ReentrantLock();
/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/
DInterceptor.kt7 import java.util.concurrent.locks.ReentrantLock
11 private val interceptorLock = ReentrantLock()
/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.kt159 public actual fun reentrantLock() = ReentrantLock() in lock()
161 public actual typealias ReentrantLock = SynchronizedObject in lock() typealias
163 public actual inline fun <T> ReentrantLock.withLock(block: () -> T): T { in lock()

123