Searched refs:sys_sem_take (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/tests/kernel/mem_protect/sys_sem/src/ |
D | main.c | 43 sys_sem_take((struct sys_sem *)semaphore, K_NO_WAIT); in isr_sem_take() 76 ret_value = sys_sem_take(&low_prio_sem, K_FOREVER); in sem_take_multiple_low_prio_helper() 79 ret_value = sys_sem_take(&multiple_thread_sem, K_FOREVER); in sem_take_multiple_low_prio_helper() 89 ret_value = sys_sem_take(&mid_prio_sem, K_FOREVER); in sem_take_multiple_mid_prio_helper() 92 ret_value = sys_sem_take(&multiple_thread_sem, K_FOREVER); in sem_take_multiple_mid_prio_helper() 102 ret_value = sys_sem_take(&high_prio_sem, K_FOREVER); in sem_take_multiple_high_prio_helper() 105 ret_value = sys_sem_take(&multiple_thread_sem, K_FOREVER); in sem_take_multiple_high_prio_helper() 116 ret_value = sys_sem_take(&multiple_thread_sem, K_FOREVER); in sem_multiple_threads_wait_helper() 150 sys_sem_take(&simple_sem, SEM_TIMEOUT); in ZTEST() 206 ret_value = sys_sem_take(&simple_sem, K_NO_WAIT); in ZTEST_USER() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | sem.h | 129 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout); 208 for (int __rc SYS_SEM_LOCK_ONEXIT = sys_sem_take((sem), K_FOREVER); ({ \
|
/Zephyr-latest/lib/posix/options/ |
D | rwlock.c | 352 if (sys_sem_take(&rwl->wr_sem, SYS_TIMEOUT_MS(timeout)) == 0) { in read_lock_acquire() 353 (void)sys_sem_take(&rwl->reader_active, K_NO_WAIT); in read_lock_acquire() 354 (void)sys_sem_take(&rwl->rd_sem, K_NO_WAIT); in read_lock_acquire() 372 if (sys_sem_take(&rwl->wr_sem, k_timeout) == 0) { in write_lock_acquire() 383 if (sys_sem_take(&rwl->reader_active, k_timeout) == 0) { in write_lock_acquire()
|
/Zephyr-latest/lib/os/ |
D | sem.c | 82 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take() function 123 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take() function
|
/Zephyr-latest/tests/net/socket/getaddrinfo/src/ |
D | main.c | 240 (void)sys_sem_take(&wait_data, K_NO_WAIT); in ZTEST() 241 (void)sys_sem_take(&wait_data, K_NO_WAIT); in ZTEST() 257 (void)sys_sem_take(&wait_data, K_NO_WAIT); in ZTEST() 258 (void)sys_sem_take(&wait_data, K_NO_WAIT); in ZTEST()
|
/Zephyr-latest/tests/net/socket/misc/src/ |
D | main.c | 209 ret = sys_sem_take(&send_sem, K_MSEC(100)); in test_so_bindtodevice() 234 ret = sys_sem_take(&send_sem, K_MSEC(100)); in test_so_bindtodevice() 272 ret = sys_sem_take(&send_sem, K_MSEC(100)); in test_so_bindtodevice()
|