Home
last modified time | relevance | path

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

1234567891011

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/sync/
DSemaphoreTest.kt11 val semaphore = Semaphore(2) in <lambda>() constant
27 val semaphore = Semaphore(1) in <lambda>() constant
49 val semaphore = Semaphore(2) in <lambda>() constant
62 val semaphore = Semaphore(1) in <lambda>() constant
72 val semaphore = Semaphore(1) in withSemaphoreOnFailureTest() constant
87 val semaphore = Semaphore(1) in <lambda>() constant
101 val semaphore = Semaphore(1) in <lambda>() constant
130 val semaphore = Semaphore(1) in <lambda>() constant
146 val semaphore = Semaphore(1) in <lambda>() constant
170 val semaphore = Semaphore(5, acquiredPermits = 4) in <lambda>() constant
[all …]
/external/rust/android-crates-io/crates/tokio/src/sync/tests/
Dloom_semaphore_batch.rs18 semaphore: Semaphore, in basic_usage() field
53 let semaphore = Arc::new(Semaphore::new(1)); in release() localVariable
56 let semaphore = semaphore.clone(); in release() localVariable
74 let semaphore = Arc::new(Semaphore::new(1)); in basic_closing() localVariable
77 let semaphore = semaphore.clone(); in basic_closing() localVariable
99 let semaphore = Arc::new(Semaphore::new(1)); in concurrent_close() localVariable
102 let semaphore = semaphore.clone(); in concurrent_close() localVariable
138 let semaphore = Arc::new(Semaphore::new(0)); in concurrent_cancel() localVariable
140 let semaphore = semaphore.clone(); in concurrent_cancel() localVariable
144 let semaphore = semaphore.clone(); in concurrent_cancel() localVariable
[all …]
/external/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/
DSemaphore64Test.java47 Semaphore64 semaphore = new BlockingSemaphore(1); in testNegative() local
53 Semaphore64 semaphore = new NonBlockingSemaphore(1); in testReturning() local
62 final Semaphore64 semaphore = new BlockingSemaphore(1); in testBlocking() local
84 final Semaphore64 semaphore = new NonBlockingSemaphore(5); in testReducePermitLimitNonBlocking() local
93 final Semaphore64 semaphore = new BlockingSemaphore(2); in testReducePermitLimitBlocking() local
119 Semaphore64 semaphore = new NonBlockingSemaphore(5); in testAcquirePartialNonBlocking() local
131 final Semaphore64 semaphore = new BlockingSemaphore(5); in testAcquirePartialBlocking() local
167 Semaphore64 semaphore = new NonBlockingSemaphore(1); in testIncreasePermitLimitNonBlocking() local
178 final Semaphore64 semaphore = new BlockingSemaphore(1); in testIncreasePermitLimitBlocking() local
203 final Semaphore64 semaphore = new NonBlockingSemaphore(10); in testReleaseWontOverflowNonBlocking() local
[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.kt17 val semaphore = Semaphore(1) in <lambda>() constant
35 val semaphore = Semaphore(10) in <lambda>() constant
53 val semaphore = Semaphore(1) in <lambda>() constant
71 val semaphore = Semaphore(1) in <lambda>() constant
92 val semaphore = Semaphore(1, 1) in <lambda>() constant
121 val semaphore = Semaphore(1) in <lambda>() constant
/external/trusty/lk/include/kernel/
Dsemaphore.h28 typedef struct semaphore { struct
32 } semaphore_t; argument
/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.c54 void deSemaphore_destroy(deSemaphore semaphore) in deSemaphore_destroy()
62 void deSemaphore_increment(deSemaphore semaphore) in deSemaphore_increment()
70 void deSemaphore_decrement(deSemaphore semaphore) in deSemaphore_decrement()
78 bool 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 bool 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 bool 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/kotlinx-coroutines-core/jvmBenchmark/kotlin/kotlinx/coroutines/
DSemaphoreBenchmark.kt41 fun semaphore() = runBlocking { in <lambda>() method in kotlinx.coroutines.SemaphoreBenchmark
43 val semaphore = Semaphore(_3_maxPermits) in <lambda>() constant
61 val semaphore = Channel<Unit>(_3_maxPermits) in <lambda>() constant
/external/skia/src/gpu/ganesh/vk/
DGrVkBackendSemaphore.cpp16 GrVkBackendSemaphoreData(VkSemaphore semaphore) : fSemaphore(semaphore) {} in GrVkBackendSemaphoreData()
18 VkSemaphore semaphore() const { return fSemaphore; } in semaphore() function in GrVkBackendSemaphoreData
39 GrBackendSemaphore MakeVk(VkSemaphore semaphore) { in MakeVk()
DGrVkSemaphore.cpp29 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local
41 VkSemaphore semaphore, in MakeWrapped()
55 GrVkSemaphore::GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore()
/external/mesa3d/src/virtio/venus-protocol/
Dvn_protocol_driver_semaphore.h436 static inline size_t vn_sizeof_vkDestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkA… in vn_sizeof_vkDestroySemaphore()
451 …vn_cs_encoder *enc, VkCommandFlagsEXT cmd_flags, VkDevice device, VkSemaphore semaphore, const VkA… in vn_encode_vkDestroySemaphore()
464 static inline size_t vn_sizeof_vkDestroySemaphore_reply(VkDevice device, VkSemaphore semaphore, con… in vn_sizeof_vkDestroySemaphore_reply()
476 …estroySemaphore_reply(struct vn_cs_decoder *dec, VkDevice device, VkSemaphore semaphore, const VkA… in vn_decode_vkDestroySemaphore_reply()
487 static inline size_t vn_sizeof_vkGetSemaphoreCounterValue(VkDevice device, VkSemaphore semaphore, u… in vn_sizeof_vkGetSemaphoreCounterValue()
500 …vn_cs_encoder *enc, VkCommandFlagsEXT cmd_flags, VkDevice device, VkSemaphore semaphore, uint64_t*… in vn_encode_vkGetSemaphoreCounterValue()
512 …ize_t vn_sizeof_vkGetSemaphoreCounterValue_reply(VkDevice device, VkSemaphore semaphore, uint64_t*… in vn_sizeof_vkGetSemaphoreCounterValue_reply()
528 …oreCounterValue_reply(struct vn_cs_decoder *dec, VkDevice device, VkSemaphore semaphore, uint64_t*… in vn_decode_vkGetSemaphoreCounterValue_reply()
657 static inline size_t vn_sizeof_vkWaitSemaphoreResourceMESA(VkDevice device, VkSemaphore semaphore) in vn_sizeof_vkWaitSemaphoreResourceMESA()
669 …ESA(struct vn_cs_encoder *enc, VkCommandFlagsEXT cmd_flags, VkDevice device, VkSemaphore semaphore) in vn_encode_vkWaitSemaphoreResourceMESA()
[all …]
/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

1234567891011