Home
last modified time | relevance | path

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

12345678

/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/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/pigweed/pw_sync/
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()
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()
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()
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
117 CountingSemaphore semaphore; in TEST() local
131 CountingSemaphore semaphore; in TEST() local
136 CountingSemaphore semaphore; in TEST() local
146 CountingSemaphore semaphore; in TEST() local
157 CountingSemaphore semaphore; in TEST() local
177 CountingSemaphore semaphore; in TEST() local
Dbinary_semaphore_facade_test.cc53 BinarySemaphore semaphore; in TEST() local
60 BinarySemaphore semaphore; in TEST() local
83 BinarySemaphore semaphore; in TEST() local
99 BinarySemaphore semaphore; in TEST() local
113 BinarySemaphore semaphore; in TEST() local
118 BinarySemaphore semaphore; in TEST() local
127 BinarySemaphore semaphore; in TEST() local
147 BinarySemaphore semaphore; in TEST() local
/external/deqp/framework/delibs/dethread/unix/
DdeNamedSemaphoreUnix.c36 sem_t* semaphore; member
70 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy()
86 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment()
94 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement()
102 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement()
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()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/sync/
DSemaphoreStressTest.kt13 val semaphore = Semaphore(1) in <lambda>() constant
31 val semaphore = Semaphore(10) in <lambda>() constant
46 val semaphore = Semaphore(1) in <lambda>() constant
67 val semaphore = Semaphore(1, 1) in <lambda>() constant
/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/guava-tests/test/com/google/common/util/concurrent/
DUninterruptiblesTest.java366 Semaphore semaphore = new Semaphore(99); in testTryAcquireWithNoWait() local
374 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20); in testTryAcquireTimeoutNoInterruptNotExpired() local
380 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutNoInterruptExpired() local
386 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(50); in testTryAcquireTimeoutSingleInterruptNoExpire() local
393 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutSingleInterruptExpired() local
400 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(100); in testTryAcquireTimeoutMultiInterruptNoExpire() local
412 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutMultiInterruptExpired() local
420 Semaphore semaphore = new Semaphore(99); in testTryAcquireWithNoWaitMultiPermit() local
428 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20); in testTryAcquireTimeoutNoInterruptNotExpiredMultiPermit() local
434 TimedSemaphore semaphore = TimedSemaphore.createWithDelay(LONG_DELAY_MS); in testTryAcquireTimeoutNoInterruptExpiredMultiPermit() local
[all …]
/external/guava/android/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.kt49 fun semaphore() = runBlocking { in <lambda>() method
51 val semaphore = Semaphore(_3_maxPermits) in <lambda>() constant
69 val semaphore = Channel<Unit>(_3_maxPermits) in <lambda>() constant
/external/skqp/src/gpu/ops/
DGrSemaphoreOp.cpp21 sk_sp<GrSemaphore> semaphore, in Make()
33 explicit GrWaitSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) in GrWaitSemaphoreOp()
46 sk_sp<GrSemaphore> semaphore, in MakeWait()
/external/skia/src/gpu/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/skqp/src/gpu/vk/
DGrVkSemaphore.cpp25 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local
33 VkSemaphore semaphore, in MakeWrapped()
45 GrVkSemaphore::GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore()
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dsemaphore.h37 ScopedReservation(Semaphore* semaphore, int64 amount) in ScopedReservation()
56 Semaphore* semaphore; member
Dsemaphore_test.cc27 Semaphore semaphore(2); in TEST() local
51 Semaphore semaphore(2); in TEST() local
/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/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/skqp/src/gpu/
DGrBackendTextureImageGenerator.cpp36 sk_sp<GrSemaphore> semaphore, SkColorType colorType, in Make()
67 sk_sp<GrSemaphore> semaphore, in GrBackendTextureImageGenerator()
138 sk_sp<GrSemaphore> semaphore = fSemaphore; in onGenerateTexture() local
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/linearizability/
DSemaphoreLCStressTest.kt14 private val semaphore = Semaphore(permits) constant
/external/skia/src/gpu/
DGrBackendTextureImageGenerator.cpp29 std::unique_ptr<GrSemaphore> semaphore) in RefHelper()
46 std::unique_ptr<GrSemaphore> semaphore, SkColorType colorType, in Make()
74 std::unique_ptr<GrSemaphore> semaphore, in GrBackendTextureImageGenerator()

12345678