Source/Backend/thread_pool/gtr_thread_pool.c
static void binary_semaphore_post(binary_semaphore *binary_semaphore_p) {
    pthread_mutex_lock(&binary_semaphore_p->mutex);
    binary_semaphore_p->v = 1;
    pthread_cond_signal(&binary_semaphore_p->cond);
    pthread_mutex_unlock(&binary_semaphore_p->mutex);
}
/* Post to at least one thread */
Post to at least one thread
Post to at least one thread
static void binary_semaphore_post(binary_semaphore *binary_semaphore_p) {
    pthread_mutex_lock(&binary_semaphore_p->mutex);
    binary_semaphore_p->v = 1;
    pthread_cond_signal(&binary_semaphore_p->cond);
    pthread_mutex_unlock(&binary_semaphore_p->mutex);
}
static void binary_semaphore_post ( binary_semaphore * binary_semaphore_p ) { pthread_mutex_lock ( & binary_semaphore_p -> mutex ) ; binary_semaphore_p -> v = 1 ; pthread_cond_signal ( & binary_semaphore_p -> cond ) ; pthread_mutex_unlock ( & binary_semaphore_p -> mutex ) ; }
Post to at least one thread
Post to at least one thread