Lines Matching refs:semaphore
112 semaphore_t* semaphore = semaphore_new(0); in init_stack() local
114 base::Bind(event_init_stack, semaphore)); in init_stack()
115 semaphore_wait(semaphore); in init_stack()
116 semaphore_free(semaphore); in init_stack()
132 semaphore_t* semaphore = semaphore_new(0); in clean_up_stack() local
134 base::Bind(event_clean_up_stack, semaphore)); in clean_up_stack()
135 semaphore_wait(semaphore); in clean_up_stack()
136 semaphore_free(semaphore); in clean_up_stack()
198 semaphore_t* semaphore = (semaphore_t*)context; in event_init_stack() local
225 if (semaphore) semaphore_post(semaphore); in event_init_stack()
410 semaphore_t* semaphore = (semaphore_t*)context; in event_clean_up_stack() local
411 if (semaphore) semaphore_post(semaphore); in event_clean_up_stack()