/aosp_15_r20/external/deqp/external/vulkancts/framework/vulkan/ |
H A D | vkIPC.inl | 81 void ipc_sem_init (ipc_sharedsemaphore* sem, char* name) 134 int ipc_sem_create (ipc_sharedsemaphore* sem, int initialvalue) 142 void ipc_sem_close (ipc_sharedsemaphore* sem) 149 void ipc_sem_increment (ipc_sharedsemaphore* sem) 154 void ipc_sem_decrement (ipc_sharedsemaphore* sem) 159 int ipc_sem_try_decrement (ipc_sharedsemaphore* sem) 215 int ipc_sem_create (ipc_sharedsemaphore* sem, int initialvalue) 223 void ipc_sem_close (ipc_sharedsemaphore* sem) 230 void ipc_sem_increment (ipc_sharedsemaphore* sem) 235 void ipc_sem_decrement (ipc_sharedsemaphore* sem) [all …]
|
/aosp_15_r20/bionic/libc/bionic/ |
H A D | semaphore.cpp | 88 static inline atomic_uint* SEM_TO_ATOMIC_POINTER(sem_t* sem) { in SEM_TO_ATOMIC_POINTER() 103 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() 214 int sem_wait(sem_t* sem) { in sem_wait() 233 static int __sem_timedwait(sem_t* sem, const timespec* abs_timeout, bool use_realtime_clock) { in __sem_timedwait() 270 int sem_timedwait(sem_t* sem, const timespec* abs_timeout) { in sem_timedwait() 274 int sem_timedwait_monotonic_np(sem_t* sem, const timespec* abs_timeout) { in sem_timedwait_monotonic_np() 278 int sem_clockwait(sem_t* sem, clockid_t clock, const timespec* abs_timeout) { in sem_clockwait() 289 int sem_post(sem_t* sem) { in sem_post() 306 int sem_trywait(sem_t* sem) { in sem_trywait() 316 int sem_getvalue(sem_t* sem, int* sval) { in sem_getvalue()
|
/aosp_15_r20/external/rust/android-crates-io/crates/tokio/tests/ |
D | sync_semaphore_owned.rs | 11 let sem = Arc::new(Semaphore::new(1)); in try_acquire() localVariable 24 let sem = Arc::new(Semaphore::new(42)); in try_acquire_many() localVariable 41 let sem = Arc::new(Semaphore::new(1)); in acquire() localVariable 70 let sem = Arc::new(Semaphore::new(0)); in add_permits() localVariable 81 let sem = Arc::new(Semaphore::new(1)); in forget() localVariable 94 let sem = Arc::new(Semaphore::new(3)); in merge() localVariable 119 let sem = Arc::new(Semaphore::new(5)); in split() localVariable 146 let sem = Arc::new(Semaphore::new(5)); in stress_test() localVariable
|
D | sync_semaphore.rs | 17 let sem = Semaphore::new(1); in try_acquire() localVariable 31 let sem = Arc::new(Semaphore::new(1)); in acquire() localVariable 44 let sem = Arc::new(Semaphore::new(0)); in add_permits() localVariable 55 let sem = Arc::new(Semaphore::new(1)); in forget() localVariable 68 let sem = Arc::new(Semaphore::new(3)); in merge() localVariable 93 let sem = Semaphore::new(5); in split() localVariable 120 let sem = Arc::new(Semaphore::new(5)); in stress_test() localVariable
|
/aosp_15_r20/external/trusty/lk/kernel/ |
D | semaphore.c | 22 void sem_init(semaphore_t *sem, unsigned int value) in sem_init() 27 void sem_destroy(semaphore_t *sem) in sem_destroy() 35 int sem_post(semaphore_t *sem, bool resched) in sem_post() 54 status_t sem_wait(semaphore_t *sem) in sem_wait() 70 status_t sem_trywait(semaphore_t *sem) in sem_trywait() 84 status_t sem_timedwait(semaphore_t *sem, lk_time_t timeout) in sem_timedwait()
|
/aosp_15_r20/art/test/1934-jvmti-signal-thread/src/art/ |
H A D | Test1934.java | 119 final Semaphore sem = new Semaphore(0); in testStopWait() local 146 final Semaphore sem = new Semaphore(0); in testInterruptWait() local 178 final Semaphore sem = new Semaphore(0); in testStopInNative() local 220 final Semaphore sem = new Semaphore(0); in testStopRecur() local 241 final Semaphore sem = new Semaphore(0); in testInterruptRecur() local 264 final Semaphore sem = new Semaphore(0); in testStopSpinning() local 279 final Semaphore sem = new Semaphore(0); in testInterruptSpinning() local
|
/aosp_15_r20/external/deqp/framework/delibs/dethread/unix/ |
H A D | deSemaphoreUnix.c | 37 sem_t *sem = (sem_t *)deMalloc(sizeof(sem_t)); in deSemaphore_create() local 56 sem_t *sem = (sem_t *)semaphore; in deSemaphore_destroy() local 64 sem_t *sem = (sem_t *)semaphore; in deSemaphore_increment() local 72 sem_t *sem = (sem_t *)semaphore; in deSemaphore_decrement() local 80 sem_t *sem = (sem_t *)semaphore; in deSemaphore_tryDecrement() local
|
H A D | deSemaphoreMach.c | 38 semaphore_t sem; in deSemaphore_create() local 51 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_destroy() local 59 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_increment() local 67 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_decrement() local 75 semaphore_t sem = (semaphore_t)semaphore; in deSemaphore_tryDecrement() local
|
/aosp_15_r20/external/mesa3d/src/virtio/vulkan/ |
H A D | vn_queue.c | 283 struct vn_semaphore *sem = vn_semaphore_from_handle( in vn_has_zink_sync_batch() local 401 struct vn_semaphore *sem = vn_semaphore_from_handle(sem_handle); in vn_queue_submission_fix_batch_semaphores() local 434 struct vn_semaphore *sem = vn_semaphore_from_handle( in vn_queue_submission_count_batch_feedback() local 721 struct vn_semaphore *sem = vn_semaphore_from_handle( in vn_queue_submission_add_semaphore_feedback() local 829 struct vn_semaphore *sem = vn_semaphore_from_handle( in vn_queue_submission_setup_batch() local 934 struct vn_semaphore *sem = vn_semaphore_from_handle(sem_handle); in vn_queue_submission_cleanup_semaphore_feedback() local 946 struct vn_semaphore *sem = vn_semaphore_from_handle(sem_handle); in vn_queue_submission_cleanup_semaphore_feedback() local 1106 struct vn_semaphore *sem = in vn_queue_submit() local 1884 struct vn_semaphore *sem, in vn_semaphore_init_payloads() 1896 vn_semaphore_wait_external(struct vn_device *dev, struct vn_semaphore *sem) in vn_semaphore_wait_external() [all …]
|
/aosp_15_r20/external/cronet/base/task/thread_pool/semaphore/ |
H A D | semaphore_unittest.cc | 45 internal::Semaphore sem{0}; in TEST_F() local 59 internal::Semaphore sem{0}; in TEST_F() local 72 internal::Semaphore sem{0}; in TEST_F() local 83 internal::Semaphore sem{0}; in TEST_F() local 92 internal::Semaphore sem{0}; in TEST_F() local
|
/aosp_15_r20/external/libvpx/vp8/common/ |
H A D | threading.h | 41 #define vp8_sem_init(sem, pshared, value) \ argument 43 #define vp8_sem_wait(sem) \ argument 45 #define vp8_sem_post(sem) ReleaseSemaphore(*sem, 1, NULL) argument 46 #define vp8_sem_destroy(sem) \ argument
|
/aosp_15_r20/external/skia/src/gpu/graphite/vk/ |
H A D | VulkanBackendSemaphore.cpp | 18 VulkanBackendSemaphoreData(VkSemaphore sem) : fVkSemaphore(sem) {} in VulkanBackendSemaphoreData() 36 static const VulkanBackendSemaphoreData* get_and_cast_data(const BackendSemaphore& sem) { in get_and_cast_data() 43 BackendSemaphore MakeVulkan(VkSemaphore sem) { in MakeVulkan() 47 VkSemaphore GetVkSemaphore(const BackendSemaphore& sem) { in GetVkSemaphore()
|
/aosp_15_r20/external/python/cpython3/Modules/_multiprocessing/ |
D | semaphore.c | 56 #define SEM_CLOSE(sem) (CloseHandle(sem) ? 0 : -1) argument 57 #define SEM_GETVALUE(sem, pval) _GetSemaphoreValue(sem, pval) argument 217 #define SEM_CLOSE(sem) sem_close(sem) argument 218 #define SEM_GETVALUE(sem, pval) sem_getvalue(sem, pval) argument 233 # define sem_timedwait(sem,deadline) sem_timedwait_save(sem,deadline,_save) argument 236 sem_timedwait_save(sem_t *sem, struct timespec *deadline, PyThreadState *_save) in sem_timedwait_save()
|
/aosp_15_r20/external/python/cpython2/Modules/_multiprocessing/ |
D | semaphore.c | 36 #define SEM_CLOSE(sem) (CloseHandle(sem) ? 0 : -1) argument 37 #define SEM_GETVALUE(sem, pval) _GetSemaphoreValue(sem, pval) argument 196 #define SEM_CLOSE(sem) sem_close(sem) argument 197 #define SEM_GETVALUE(sem, pval) sem_getvalue(sem, pval) argument 212 # define sem_timedwait(sem,deadline) sem_timedwait_save(sem,deadline,_save) argument 215 sem_timedwait_save(sem_t *sem, struct timespec *deadline, PyThreadState *_save) in sem_timedwait_save()
|
/aosp_15_r20/external/autotest/utils/named_semaphore/ |
H A D | namedsem.c | 30 sem_t *sem; in namedsem_sem_close() local 54 sem_t *sem; in namedsem_sem_wait() local 66 sem_t *sem; in namedsem_sem_post() local 79 sem_t *sem; in namedsem_sem_getvalue() local
|
/aosp_15_r20/external/swiftshader/src/Vulkan/ |
H A D | VkQueue.cpp | 83 if(auto *sem = DynamicCast<TimelineSemaphore>(submitInfo.pWaitSemaphores[j])) in submitQueue() local 88 else if(auto *sem = DynamicCast<BinarySemaphore>(submitInfo.pWaitSemaphores[j])) in submitQueue() local 110 if(auto *sem = DynamicCast<TimelineSemaphore>(submitInfo.pSignalSemaphores[j])) in submitQueue() local 115 else if(auto *sem = DynamicCast<BinarySemaphore>(submitInfo.pSignalSemaphores[j])) in submitQueue() local
|
/aosp_15_r20/external/libdrm/amdgpu/ |
H A D | amdgpu_cs.c | 143 amdgpu_semaphore_handle sem, tmp; in amdgpu_cs_ctx_free() local 263 amdgpu_semaphore_handle sem, tmp; in amdgpu_cs_submit_one() local 578 drm_public int amdgpu_cs_create_semaphore(amdgpu_semaphore_handle *sem) in amdgpu_cs_create_semaphore() 599 amdgpu_semaphore_handle sem) in amdgpu_cs_signal_semaphore() 632 amdgpu_semaphore_handle sem) in amdgpu_cs_wait_semaphore() 650 static int amdgpu_cs_reset_sem(amdgpu_semaphore_handle sem) in amdgpu_cs_reset_sem() 664 static int amdgpu_cs_unreference_sem(amdgpu_semaphore_handle sem) in amdgpu_cs_unreference_sem() 674 drm_public int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem) in amdgpu_cs_destroy_semaphore()
|
/aosp_15_r20/external/libmpeg2/common/ |
H A D | ithread.c | 137 WORD32 ithread_sem_init(void *sem,WORD32 pshared,UWORD32 value) in ithread_sem_init() 142 WORD32 ithread_sem_post(void *sem) in ithread_sem_post() 147 WORD32 ithread_sem_wait(void *sem) in ithread_sem_wait() 152 WORD32 ithread_sem_destroy(void *sem) in ithread_sem_destroy()
|
/aosp_15_r20/external/libhevc/common/ |
H A D | ithread.c | 129 WORD32 ithread_sem_init(void *sem, WORD32 pshared, UWORD32 value) in ithread_sem_init() 134 WORD32 ithread_sem_post(void *sem) in ithread_sem_post() 139 WORD32 ithread_sem_wait(void *sem) in ithread_sem_wait() 144 WORD32 ithread_sem_destroy(void *sem) in ithread_sem_destroy()
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/libcxx/thread/ |
H A D | semaphore.availability.verify.cpp | 20 std::counting_semaphore<20> sem(10); in f() local 30 std::counting_semaphore<> sem(10); in f() local 40 std::binary_semaphore sem(10); in f() local
|
/aosp_15_r20/external/libavc/common/ |
H A D | ithread.c | 140 WORD32 ithread_sem_init(void *sem,WORD32 pshared,UWORD32 value) in ithread_sem_init() 145 WORD32 ithread_sem_post(void *sem) in ithread_sem_post() 151 WORD32 ithread_sem_wait(void *sem) in ithread_sem_wait() 157 WORD32 ithread_sem_destroy(void *sem) in ithread_sem_destroy()
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/atomic/src/ |
D | lock_pool.cpp | 774 semaphore* sem = m_head; in eject() local 780 void push_front(semaphore* sem) BOOST_NOEXCEPT in push_front() 792 semaphore* sem = m_head; in pop_front() local 798 void erase(semaphore* sem) BOOST_NOEXCEPT in erase() 835 semaphore* sem = m_free_semaphores.eject(); in ~wait_state() local 871 semaphore* sem = m_notify_semaphores.front(); in notify_one() local 887 semaphore* sem = m_notify_semaphores.eject(); in notify_all() local 999 semaphore* sem = m_wait_semaphores.front(); in wait() local
|
/aosp_15_r20/external/rust/android-crates-io/crates/tokio-util/tests/ |
D | poll_semaphore.rs | 26 let sem = Arc::new(Semaphore::new(1)); in it_works() localVariable 48 let sem = Arc::new(Semaphore::new(4)); in can_acquire_many_permits() localVariable 73 let sem = Arc::new(Semaphore::new(4)); in can_poll_different_amounts_of_permits() localVariable
|
/aosp_15_r20/external/pigweed/pw_rpc/fuzz/ |
H A D | alarm_timer_test.cc | 29 sync::BinarySemaphore sem; in TEST() local 78 sync::BinarySemaphore sem; in TEST() local 86 sync::BinarySemaphore sem; in TEST() local
|
/aosp_15_r20/external/mesa3d/src/compiler/nir/ |
H A D | nir_lower_mediump.c | 87 nir_io_semantics sem = nir_intrinsic_io_semantics(intr); in nir_recompute_io_bases() local 121 nir_io_semantics sem = nir_intrinsic_io_semantics(intr); in nir_recompute_io_bases() local 187 nir_io_semantics sem = nir_intrinsic_io_semantics(intr); in nir_lower_mediump_io() local 323 nir_io_semantics sem = nir_intrinsic_io_semantics(intr); in nir_force_mediump_io() local 374 nir_io_semantics sem = nir_intrinsic_io_semantics(intr); in nir_unpack_16bit_varying_slots() local
|