Home
last modified time | relevance | path

Searched defs:semaphore (Results 1 – 25 of 232) sorted by relevance

12345678910

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/sync/
DSemaphoreTest.kt13 val semaphore = Semaphore(2) in <lambda>() constant
29 val semaphore = Semaphore(1) in <lambda>() constant
51 val semaphore = Semaphore(2) in <lambda>() constant
64 val semaphore = Semaphore(1) in <lambda>() constant
74 val semaphore = Semaphore(1) in <lambda>() constant
103 val semaphore = Semaphore(1) in <lambda>() constant
119 val semaphore = Semaphore(1) in <lambda>() constant
143 val semaphore = Semaphore(5, acquiredPermits = 4) in <lambda>() constant
155 val semaphore = Semaphore(5, acquiredPermits = 4) in <lambda>() constant
/external/rust/crates/tokio/src/sync/tests/
Dloom_semaphore_batch.rs19 semaphore: Semaphore, in basic_usage() field
54 let semaphore = Arc::new(Semaphore::new(1)); in release() localVariable
57 let semaphore = semaphore.clone(); in release() localVariable
75 let semaphore = Arc::new(Semaphore::new(1)); in basic_closing() localVariable
78 let semaphore = semaphore.clone(); in basic_closing() localVariable
100 let semaphore = Arc::new(Semaphore::new(1)); in concurrent_close() localVariable
103 let semaphore = semaphore.clone(); in concurrent_close() localVariable
139 let semaphore = Arc::new(Semaphore::new(0)); in concurrent_cancel() localVariable
141 let semaphore = semaphore.clone(); in concurrent_cancel() localVariable
145 let semaphore = semaphore.clone(); in concurrent_cancel() localVariable
[all …]
/external/pigweed/pw_sync/
Dcounting_semaphore_facade_test.cc58 CountingSemaphore semaphore; in TEST() local
65 CountingSemaphore semaphore; in TEST() local
90 CountingSemaphore semaphore; in TEST() local
101 CountingSemaphore semaphore; in TEST() local
112 CountingSemaphore semaphore; in TEST() local
122 CountingSemaphore semaphore; in TEST() local
133 CountingSemaphore semaphore; in TEST() local
144 CountingSemaphore semaphore; in TEST() local
155 CountingSemaphore semaphore; in TEST() local
165 CountingSemaphore semaphore; in TEST() local
[all …]
Dbinary_semaphore_facade_test.cc52 BinarySemaphore semaphore; in TEST() local
59 BinarySemaphore semaphore; in TEST() local
82 BinarySemaphore semaphore; in TEST() local
93 BinarySemaphore semaphore; in TEST() local
103 BinarySemaphore semaphore; in TEST() local
114 BinarySemaphore semaphore; in TEST() local
125 BinarySemaphore semaphore; in TEST() local
136 BinarySemaphore semaphore; in TEST() local
146 BinarySemaphore semaphore; in TEST() local
156 BinarySemaphore semaphore; in TEST() local
[all …]
Dcounting_semaphore_facade_test_c.c23 pw_sync_CountingSemaphore* semaphore) { in pw_sync_CountingSemaphore_CallRelease()
28 pw_sync_CountingSemaphore* semaphore, ptrdiff_t update) { in pw_sync_CountingSemaphore_CallReleaseNum()
33 pw_sync_CountingSemaphore* semaphore) { in pw_sync_CountingSemaphore_CallAcquire()
38 pw_sync_CountingSemaphore* semaphore) { in pw_sync_CountingSemaphore_CallTryAcquire()
43 pw_sync_CountingSemaphore* semaphore, in pw_sync_CountingSemaphore_CallTryAcquireFor()
49 pw_sync_CountingSemaphore* semaphore, in pw_sync_CountingSemaphore_CallTryAcquireUntil()
Dcounting_semaphore.cc20 pw_sync_CountingSemaphore* semaphore) { in pw_sync_CountingSemaphore_Release()
25 pw_sync_CountingSemaphore* semaphore, ptrdiff_t update) { in pw_sync_CountingSemaphore_ReleaseNum()
30 pw_sync_CountingSemaphore* semaphore) { in pw_sync_CountingSemaphore_Acquire()
35 pw_sync_CountingSemaphore* semaphore) { in pw_sync_CountingSemaphore_TryAcquire()
40 pw_sync_CountingSemaphore* semaphore, in pw_sync_CountingSemaphore_TryAcquireFor()
46 pw_sync_CountingSemaphore* semaphore, in pw_sync_CountingSemaphore_TryAcquireUntil()
Dbinary_semaphore.cc20 pw_sync_BinarySemaphore* semaphore) { in pw_sync_BinarySemaphore_Release()
25 pw_sync_BinarySemaphore* semaphore) { in pw_sync_BinarySemaphore_Acquire()
30 pw_sync_BinarySemaphore* semaphore) { in pw_sync_BinarySemaphore_TryAcquire()
35 pw_sync_BinarySemaphore* semaphore, in pw_sync_BinarySemaphore_TryAcquireFor()
41 pw_sync_BinarySemaphore* semaphore, in pw_sync_BinarySemaphore_TryAcquireUntil()
Dbinary_semaphore_facade_test_c.c22 void pw_sync_BinarySemaphore_CallRelease(pw_sync_BinarySemaphore* semaphore) { in pw_sync_BinarySemaphore_CallRelease()
26 void pw_sync_BinarySemaphore_CallAcquire(pw_sync_BinarySemaphore* semaphore) { in pw_sync_BinarySemaphore_CallAcquire()
31 pw_sync_BinarySemaphore* semaphore) { in pw_sync_BinarySemaphore_CallTryAcquire()
36 pw_sync_BinarySemaphore* semaphore, in pw_sync_BinarySemaphore_CallTryAcquireFor()
42 pw_sync_BinarySemaphore* semaphore, in pw_sync_BinarySemaphore_CallTryAcquireUntil()
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/concurrent/
DTimedSemaphoreTest.java60 final TimedSemaphore semaphore = new TimedSemaphore(service, PERIOD_MILLIS, UNIT, in testInit() local
87 final TimedSemaphore semaphore = new TimedSemaphore(PERIOD_MILLIS, UNIT, LIMIT); in testInitDefaultService() local
103 final TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(PERIOD_MILLIS, in testStartTimer() local
123 final TimedSemaphore semaphore = new TimedSemaphore(PERIOD_MILLIS, UNIT, LIMIT); in testShutdownOwnExecutor() local
138 final TimedSemaphore semaphore = new TimedSemaphore(service, PERIOD_MILLIS, UNIT, in testShutdownSharedExecutorNoTask() local
172 final TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(service, in testShutdownSharedExecutorTask() local
193 final TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(service, in testShutdownMultipleTimes() local
216 final TimedSemaphore semaphore = new TimedSemaphore(service, PERIOD_MILLIS, UNIT, 1); in testAcquireLimit() local
250 final TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(service, in testAcquireMultipleThreads() local
286 final TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(service, in testAcquireNoLimit() local
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/concurrent/test/sync/
DSemaphoreStressTest.kt20 val semaphore = Semaphore(1) in <lambda>() constant
38 val semaphore = Semaphore(10) in <lambda>() constant
56 val semaphore = Semaphore(1) in <lambda>() constant
74 val semaphore = Semaphore(1) in <lambda>() constant
95 val semaphore = Semaphore(1, 1) in <lambda>() constant
124 val semaphore = Semaphore(1) in <lambda>() constant
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/
DLockScope.java100 Semaphore semaphore = getOrCreateSemaphore(uri.toString()); in threadLock() local
116 Semaphore semaphore = getOrCreateSemaphore(uri.toString()); in tryThreadLock() local
226 private Semaphore semaphore; field in LockScope.SemaphoreLockImpl
228 SemaphoreLockImpl(Semaphore semaphore) { in SemaphoreLockImpl()
260 @Nullable private Semaphore semaphore; field in LockScope.SemaphoreResource
262 static SemaphoreResource tryAcquire(Semaphore semaphore) { in tryAcquire()
267 static SemaphoreResource acquire(Semaphore semaphore) throws InterruptedIOException { in acquire()
276 SemaphoreResource(@Nullable Semaphore semaphore) { in SemaphoreResource()
303 Semaphore semaphore = lockMap.get(key); in getOrCreateSemaphore() local
/external/deqp/framework/delibs/dethread/unix/
DdeSemaphoreUnix.c53 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy()
61 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment()
69 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement()
77 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement()
DdeSemaphoreMach.c49 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy()
57 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment()
65 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement()
73 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement()
/external/deqp/framework/delibs/dethread/win32/
DdeSemaphoreWin32.c51 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy()
57 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment()
65 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement()
73 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DUninterruptiblesTest.java364 Semaphore semaphore = new Semaphore(99); in testTryAcquireWithNoWait() local
372 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20); in testTryAcquireTimeoutNoInterruptNotExpired() local
378 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutNoInterruptExpired() local
384 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(50); in testTryAcquireTimeoutSingleInterruptNoExpire() local
391 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutSingleInterruptExpired() local
398 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(100); in testTryAcquireTimeoutMultiInterruptNoExpire() local
410 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutMultiInterruptExpired() local
418 Semaphore semaphore = new Semaphore(99); in testTryAcquireWithNoWaitMultiPermit() local
426 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20); in testTryAcquireTimeoutNoInterruptNotExpiredMultiPermit() local
432 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutNoInterruptExpiredMultiPermit() local
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DUninterruptiblesTest.java365 Semaphore semaphore = new Semaphore(99); in testTryAcquireWithNoWait() local
373 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20); in testTryAcquireTimeoutNoInterruptNotExpired() local
379 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutNoInterruptExpired() local
385 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(50); in testTryAcquireTimeoutSingleInterruptNoExpire() local
392 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutSingleInterruptExpired() local
399 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(100); in testTryAcquireTimeoutMultiInterruptNoExpire() local
411 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutMultiInterruptExpired() local
419 Semaphore semaphore = new Semaphore(99); in testTryAcquireWithNoWaitMultiPermit() local
427 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20); in testTryAcquireTimeoutNoInterruptNotExpiredMultiPermit() local
433 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutNoInterruptExpiredMultiPermit() local
[all …]
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/
DSemaphoreBenchmark.kt46 fun semaphore() = runBlocking { in <lambda>() method
48 val semaphore = Semaphore(_3_maxPermits) in <lambda>() constant
66 val semaphore = Channel<Unit>(_3_maxPermits) in <lambda>() constant
/external/skia/src/gpu/ganesh/vk/
DGrVkSemaphore.cpp25 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local
37 VkSemaphore semaphore, in MakeWrapped()
51 GrVkSemaphore::GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore()
/external/libusb/examples/
Ddpfp.c53 sem_t *semaphore; in semaphore_create() local
65 static inline void semaphore_give(semaphore_t semaphore) in semaphore_give()
70 static inline void semaphore_take(semaphore_t semaphore) in semaphore_take()
75 static inline void semaphore_destroy(semaphore_t semaphore) in semaphore_destroy()
107 static inline void semaphore_give(semaphore_t semaphore) in semaphore_give()
112 static inline void semaphore_take(semaphore_t semaphore) in semaphore_take()
117 static inline void semaphore_destroy(semaphore_t semaphore) in semaphore_destroy()
/external/mesa3d/src/mesa/main/
Dexternalobjects.h61 _mesa_lookup_semaphore_object(struct gl_context *ctx, GLuint semaphore) in _mesa_lookup_semaphore_object()
71 _mesa_lookup_semaphore_object_locked(struct gl_context *ctx, GLuint semaphore) in _mesa_lookup_semaphore_object_locked()
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dsemaphore.h36 ScopedReservation(Semaphore* semaphore, int64_t amount) in ScopedReservation()
55 Semaphore* semaphore; member
Dsemaphore_test.cc27 Semaphore semaphore(2); in TEST() local
51 Semaphore semaphore(2); in TEST() local
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DThreadLocalStressTest.kt141 val semaphore = Semaphore(1, 1) in doTest() constant
155 val semaphore = Semaphore(1, 1) in doTestWithContextSwitch() constant
/external/skia/src/gpu/ganesh/
DGrBackendTextureImageGenerator.cpp28 std::unique_ptr<GrSemaphore> semaphore) in RefHelper()
44 std::unique_ptr<GrSemaphore> semaphore, in Make()
69 std::unique_ptr<GrSemaphore> semaphore) in GrBackendTextureImageGenerator()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/lincheck/
DSemaphoreLincheckTest.kt14 private val semaphore = SemaphoreImpl(permits = permits, acquiredPermits = 0) constant

12345678910