thpool.c
/* Post to at least one thread */
Post to at least one thread
Post to at least one thread
static void bsem_post(bsem *bsem_p) {
    pthread_mutex_lock(&bsem_p->mutex);
    bsem_p->v = 1;
    pthread_cond_signal(&bsem_p->cond);
    pthread_mutex_unlock(&bsem_p->mutex);
}
static void bsem_post ( bsem * bsem_p ) { pthread_mutex_lock ( & bsem_p -> mutex ) ; bsem_p -> v = 1 ; pthread_cond_signal ( & bsem_p -> cond ) ; pthread_mutex_unlock ( & bsem_p -> mutex ) ; }
Post to at least one thread
Post to at least one thread