Home
last modified time | relevance | path

Searched refs:sem_post (Results 1 – 25 of 143) sorted by relevance

123456

/third_party/NuttX/drivers/pipes/
Dpipe_common.c202 (void)sem_post(&dev->d_bfsem); in pipecommon_open()
222 sem_post(&dev->d_rdsem); in pipecommon_open()
239 (void)sem_post(&dev->d_bfsem); in pipecommon_open()
318 sem_post(&dev->d_rdsem); in pipecommon_close()
368 sem_post(&dev->d_bfsem); in pipecommon_close()
416 sem_post(&dev->d_bfsem); in pipecommon_read()
424 sem_post(&dev->d_bfsem); in pipecommon_read()
430 sem_post(&dev->d_bfsem); in pipecommon_read()
449 sem_post(&dev->d_bfsem); in pipecommon_read()
472 sem_post(&dev->d_wrsem); in pipecommon_read()
[all …]
Dpipe.c123 (void)sem_post(&g_pipesem); in pipe_free()
176 (void)sem_post(&g_pipesem); in pipe_unlink()
266 (void)sem_post(&g_pipesem); in pipe()
280 (void)sem_post(&g_pipesem); in pipe()
296 (void)sem_post(&g_pipesem); in pipe()
309 (void)sem_post(&g_pipesem); in pipe()
344 (void)sem_post(&g_pipesem); in pipe()
/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_sleepingbarber.c39 sem_post(&print); \
65 if (-1 == sem_post(&lock)) { in barbers()
82 if (-1 == sem_post(&lock)) { in barbers()
86 if (-1 == sem_post(&barber)) { in barbers()
110 if (-1 == sem_post(&customer)) { in customers()
117 if (-1 == sem_post(&lock)) { in customers()
130 if (-1 == sem_post(&lock)) { in customers()
Dsem_conpro.c56 if (-1 == sem_post(&buf->lock)) { in producer()
60 if (-1 == sem_post(&buf->empty)) { in producer()
85 if (-1 == sem_post(&buf->lock)) { in consumer()
89 if (-1 == sem_post(&buf->occupied)) { in consumer()
Dsem_readerwriter.c63 if (-1 == sem_post(&r_lock)) { in reader()
75 if (-1 == sem_post(&w_lock)) { in reader()
80 if (-1 == sem_post(&r_lock)) { in reader()
100 if (-1 == sem_post(&w_lock)) { in writer()
Dsem_philosopher.c63 sem_post(&ph[ID]); in test()
84 if (-1 == sem_post(&lock)) { in philosopher()
109 if (-1 == sem_post(&lock)) { in philosopher()
/third_party/musl/libc-test/src/regression/
Dpthread_cancel-sem_wait.c62 sem_post(&sem1); in main()
72 sem_post(&sem1); in main()
79 sem_post(&sem2); in main()
82 sem_post(&sem1); in main()
92 sem_post(&sem1); in main()
102 sem_post(&sem1); in main()
Dpthread_once-deadlock.c23 E(sem_post(a[1])); in start()
25 E(sem_post(a[1])); in start()
/third_party/musl/src/thread/
Dsynccall.c28 sem_post(&caller_sem); in handler()
35 sem_post(&caller_sem); in handler()
39 sem_post(&caller_sem); in handler()
96 sem_post(&target_sem); in __synccall()
109 sem_post(&target_sem); in __synccall()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/
D8-1.c214 sem_post(sem); in main()
219 sem_post(sem); in main()
224 sem_post(sem); in main()
240 sem_post(sem); in main()
247 sem_post(sem); in main()
248 sem_post(sem); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/semaphores/
Dmulti_con_pro.c67 if (-1 == sem_post(&buf->lock)) { in producer()
71 if (-1 == sem_post(&buf->empty)) { in producer()
94 if (-1 == sem_post(&buf->lock)) { in producer()
98 if (-1 == sem_post(&buf->empty)) { in producer()
126 if (-1 == sem_post(&buf->lock)) { in consumer()
130 if (-1 == sem_post(&buf->full)) { in consumer()
/third_party/musl/libc-test/src/functional/
Dsem_init.c18 T(sem_post(s)); in start()
41 T(sem_post(s+1)); in many_waiters()
42 T(sem_post(s+1)); in many_waiters()
43 T(sem_post(s+1)); in many_waiters()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/fork/
Ds-c1.c186 ret = sem_post(sem_ending); in main()
201 ret = sem_post(sem_synchro); in main()
222 ret = sem_post(sem_ending); in main()
258 sem_post(sem_ending); in main()
276 sem_post(sem_ending); in main()
316 ret = sem_post(sem_ending); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/
D3-1.c128 if ((sem_post(&semsig1))) { in sighdl1()
137 if ((sem_post(&semsig2))) { in sighdl2()
166 if ((sem_post(&semsync2))) { in threaded()
357 if ((sem_post(&semsync))) { in main()
D4-1.c106 if ((ret = sem_post(&sem))) { in threaded()
118 if ((ret = sem_post(&sem))) { in threaded()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
D3-1.c38 sem_post(&csem); in producer()
49 sem_post(&psem); in consumer()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/
D3-1.c75 sem_post(&csem); in producer()
86 sem_post(&psem); in consumer()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/
D3-2.c125 if ((ret = sem_post(&semA))) { in deadlk_issue()
151 if ((ret = sem_post(&semA))) { in unlock_issue()
244 if ((ret = sem_post(&semB))) { in main()
D1-2.c119 if ((ret = sem_post(&semA))) { in deadlk_issue()
145 if ((ret = sem_post(&semA))) { in unlock_issue()
251 if ((ret = sem_post(&semB))) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D14-1.c89 ret = sem_post(sem_linked); in main()
98 ret = sem_post(sem_unlinked); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/
D4-3.c129 if (sem_post(&semsig1)) in sighdl1()
149 ret = sem_post(&scenarii[sc].sem); in threaded()
275 if (sem_post(&semsig1)) in do_child()
D2-2.c119 ret = sem_post(&(scenarii[sc].sem)); in threaded()
206 ret = sem_post(&sem_sync); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D2-2.c117 ret = sem_post(sem); in common()
201 ret = sem_post(sem); in main()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages03.c97 if (sem_post(&sem[SEM_CHILD_SETUP]) == -1) in child()
178 if (sem_post(&sem[SEM_PARENT_TEST]) == -1) in main()
Dmove_pages11.c98 if (sem_post(&sem[SEM_CHILD_SETUP]) == -1) in child()
178 if (sem_post(&sem[SEM_PARENT_TEST]) == -1) in main()

123456