Lines Matching refs:semaphore
31 #include <pulsecore/semaphore.h>
49 pa_semaphore *semaphore;
85 pa_assert(!i->semaphore);
141 i->semaphore = NULL;
169 if (!(i.semaphore = pa_flist_pop(PA_STATIC_FLIST_GET(semaphores))))
170 i.semaphore = pa_semaphore_new(0);
177 pa_semaphore_wait(i.semaphore);
179 if (pa_flist_push(PA_STATIC_FLIST_GET(semaphores), i.semaphore) < 0)
180 pa_semaphore_free(i.semaphore);
229 if (a->current->semaphore) {
231 pa_semaphore_post(a->current->semaphore);