/ohos5.0/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_sem.c | 28 int32_t OsalSemInit(struct OsalSem *sem, uint32_t value) in OsalSemInit() 49 int32_t OsalSemWait(struct OsalSem *sem, uint32_t millisec) in OsalSemWait() 78 int32_t OsalSemPost(struct OsalSem *sem) in OsalSemPost() 91 int32_t OsalSemDestroy(struct OsalSem *sem) in OsalSemDestroy()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/ |
H A D | semaphore_linux.c | 63 void SemaphoreDelete(Semaphore *sem) in SemaphoreDelete() 77 void SemaphoreWait(const Semaphore *sem) in SemaphoreWait() 85 int32_t SemaphoreTryWait(Semaphore *sem) in SemaphoreTryWait() 116 void SemaphorePost(const Semaphore *sem) in SemaphorePost() 123 int32_t SemaphoreTryPost(Semaphore *sem) in SemaphoreTryPost() 153 int SemaphoreGetfd(const Semaphore *sem) in SemaphoreGetfd()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | callbacks.c | 582 IO volatile FILLP_ULONG *sem, in FillpSysArchCompAndWwap() 892 FILLP_INT FillpSemTryWait(IN SYS_ARCH_SEM *sem) in FillpSemTryWait() 937 FILLP_INT FillpSemWait(IN SYS_ARCH_SEM *sem) in FillpSemWait() 969 FILLP_INT FillpSemPost(IN SYS_ARCH_SEM *sem) in FillpSemPost() 995 FILLP_INT FillpSemDestroy(IN SYS_ARCH_SEM *sem) in FillpSemDestroy() 1030 FILLP_INT FillpRwSemTryRdWait(IN SYS_ARCH_RW_SEM *sem) in FillpRwSemTryRdWait() 1035 FILLP_INT FillpRwSemTryWrWait(IN SYS_ARCH_RW_SEM *sem) in FillpRwSemTryWrWait() 1045 FILLP_INT FillpRwSemDestroy(IN SYS_ARCH_RW_SEM *sem) in FillpRwSemDestroy() 1055 FILLP_INT FillpRwSemWrPost(IN SYS_ARCH_RW_SEM *sem) in FillpRwSemWrPost() 1065 FILLP_INT FillpRwSemRdPost(IN SYS_ARCH_RW_SEM *sem) in FillpRwSemRdPost() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | semaphore_test.rs | 29 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in sdv_auto_release_sem_acquire_test() localVariable 49 let sem = AutoRelSemaphore::new(1).unwrap(); in sdv_auto_release_sem_try_acquire_test() localVariable 67 let sem = Semaphore::new(2).unwrap(); in sdv_release_test() localVariable 81 let sem = Arc::new(AutoRelSemaphore::new(2).unwrap()); in sdv_auto_release_sem_close_test() localVariable 103 let sem = Arc::new(AutoRelSemaphore::new(5).unwrap()); in sdv_auto_release_sem_stress_test() localVariable 141 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in sdv_async_stress_test() localVariable 163 let sem = Semaphore::new(2).unwrap(); in sdv_try_acquire_test() localVariable 185 let sem = Arc::new(Semaphore::new(0).unwrap()); in sdv_acquire_test() localVariable
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_sem.c | 40 int32_t OsalSemInit(struct OsalSem *sem, uint32_t value) in OsalSemInit() 61 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() 82 int32_t OsalSemPost(struct OsalSem *sem) in OsalSemPost() 100 int32_t OsalSemDestroy(struct OsalSem *sem) in OsalSemDestroy()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/ |
H A D | osal_sem.c | 44 int32_t OsalSemInit(struct OsalSem *sem, uint32_t value) in OsalSemInit() 65 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() 86 int32_t OsalSemPost(struct OsalSem *sem) in OsalSemPost() 104 int32_t OsalSemDestroy(struct OsalSem *sem) in OsalSemDestroy()
|
/ohos5.0/drivers/hdf_core/framework/support/posix/src/ |
H A D | osal_sem.c | 21 int32_t OsalSemInit(struct OsalSem *sem, uint32_t value) in OsalSemInit() 48 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() 84 int32_t OsalSemPost(struct OsalSem *sem) in OsalSemPost() 99 int32_t OsalSemDestroy(struct OsalSem *sem) in OsalSemDestroy()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/osal/src/ |
H A D | osal_sem.c | 39 int32_t OsalSemInit(struct OsalSem *sem, uint32_t value) in OsalSemInit() 60 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() 82 int32_t OsalSemPost(struct OsalSem *sem) in OsalSemPost() 100 int32_t OsalSemDestroy(struct OsalSem *sem) in OsalSemDestroy()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/ |
H A D | semaphore.rs | 91 sem: &'a AutoRelSemaphore, field 362 let sem = Semaphore::new(4).unwrap(); in ut_sem_close_test() localVariable 377 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in ut_auto_release_sem_acquire_test() localVariable 395 let sem = Semaphore::new(2).unwrap(); in ut_release_test() localVariable 409 let sem = Arc::new(AutoRelSemaphore::new(2).unwrap()); in ut_auto_release_sem_close_test() localVariable 432 let sem = Arc::new(AutoRelSemaphore::new(5).unwrap()); in ut_auto_release_sem_stress_test() localVariable 469 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in ut_async_stress_test() localVariable 491 let sem = Semaphore::new(2).unwrap(); in ut_try_acquire_test() localVariable 513 let sem = Arc::new(Semaphore::new(0).unwrap()); in ut_acquire_test() localVariable
|
H A D | waiter.rs | 42 sem: SemaphoreInner, field
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/ipc_ability_scheduler_test/ |
H A D | ipc_ability_scheduler_module_test.cpp | 73 Semaphore sem(0); variable 118 Semaphore sem(0); variable 165 Semaphore sem(0); variable 203 Semaphore sem(0); variable 237 Semaphore sem(0); variable 269 Semaphore sem(0); variable 302 Semaphore sem(0); variable 344 Semaphore sem(0); variable 382 Semaphore sem(0); variable 420 Semaphore sem(0); variable [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/ |
H A D | sys_util.c | 93 int32_t SemInit(sem_t *sem, int pshared, unsigned int value) in SemInit() 98 void SemGetValue(sem_t *sem, int *sval) in SemGetValue() 105 void SemPost(sem_t *sem) in SemPost() 112 void SemWait(sem_t *sem) in SemWait() 119 void SemDestroy(sem_t *sem) in SemDestroy()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/ |
H A D | sys_util.c | 146 int32_t SemInit(sem_t *sem, int pshared, unsigned int value) in SemInit() 151 void SemGetValue(sem_t *sem, int *sval) in SemGetValue() 158 void SemPost(sem_t *sem) in SemPost() 165 void SemWait(sem_t *sem) in SemWait() 172 void SemDestroy(sem_t *sem) in SemDestroy()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/ |
H A D | mipi_tx_dev.c | 59 struct semaphore sem; member 206 static int32_t SemaInit(struct semaphore *sem, uint16_t val) in SemaInit() 216 static void SemaDestroy(struct semaphore *sem) in SemaDestroy() 222 static int32_t SemaDownInterruptable(struct semaphore *sem) in SemaDownInterruptable() 227 static void SemaUp(struct semaphore *sem) in SemaUp() 499 struct semaphore *sem = NULL; in MipiDsiDevIoctl() local
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-cmd-sem.md | 1 # sem chapter
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-cmd-sem.md | 1 # sem chapter
|
/ohos5.0/drivers/hdf_core/interfaces/inner_api/osal/shared/ |
H A D | osal_sem.h | 52 #define OSAL_DECLARE_SEMAPHORE(sem) struct OsalSem sem argument
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/common/ams/app_mgr_service_test/ |
H A D | ams_app_mgr_service_module_test.cpp | 260 Semaphore sem(0); variable 294 Semaphore sem(0); variable 328 Semaphore sem(0); variable 383 Semaphore sem(0); variable 463 Semaphore sem(0); variable 499 Semaphore sem(0); variable
|
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/interfaces/liteos/ |
H A D | hc_condition.h | 28 sem_t sem; member
|
/ohos5.0/foundation/multimodalinput/input/frameworks/proxy/events/test/ |
H A D | input_manager_filter_manual_test.cpp | 233 sem_t &sem; member 291 void WaitPointerEnd(sem_t &sem) in WaitPointerEnd() 305 sem_t sem; variable 339 sem_t &sem; member 367 void WaitKeyEnd(sem_t &sem) in WaitKeyEnd() 377 …SimulateKeyEvent(bool &resultA, bool &resultB, const int32_t KEYCODE, bool isKeyAEvent, sem_t &sem) in SimulateKeyEvent()
|
/ohos5.0/base/startup/init/services/init/adapter/ |
H A D | init_adapter.c | 114 sem_t sem; in SystemExecuteRcs() local
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/lifecycle_test/ |
H A D | lifecycle_test_base.h | 82 static int SemTimedWaitMillis(long msecs, sem_t& sem) in SemTimedWaitMillis()
|
/ohos5.0/drivers/hdf_core/framework/utils/include/ |
H A D | hdf_task_queue.h | 26 struct OsalSem sem; member
|
/ohos5.0/drivers/hdf_core/framework/test/fuzztest/framework_fuzzer/support/posix_fuzzer/ |
H A D | posix_fuzzer.cpp | 86 struct OsalSem sem; in FuncOsalSemWait() local 95 struct OsalSem sem; in FuncOsalSemPost() local
|
/ohos5.0/foundation/multimedia/media_lite/services/recorder_lite/impl/include/ |
H A D | recorder_sink.h | 72 sem_t sem; variable
|