Searched refs:execution_semaphore (Results 1 – 2 of 2) sorted by relevance
71 threadpool->execution_semaphore = dispatch_semaphore_create(1); in pthreadpool_create()92 dispatch_semaphore_wait(threadpool->execution_semaphore, DISPATCH_TIME_FOREVER); in pthreadpool_parallelize()125 dispatch_semaphore_signal(threadpool->execution_semaphore); in pthreadpool_parallelize()130 if (threadpool->execution_semaphore != NULL) { in pthreadpool_destroy()132 dispatch_release(threadpool->execution_semaphore); in pthreadpool_destroy()
658 dispatch_semaphore_t execution_semaphore; member