Post to at least one thread */
| 568 | |
| 569 | /* Post to at least one thread */ |
| 570 | static void bsem_post(bsem *bsem_p) { |
| 571 | pthread_mutex_lock(&bsem_p->mutex); |
| 572 | bsem_p->v = 1; |
| 573 | pthread_cond_signal(&bsem_p->cond); |
| 574 | pthread_mutex_unlock(&bsem_p->mutex); |
| 575 | } |
| 576 | |
| 577 | /* Post to all threads */ |
| 578 | static void bsem_post_all(bsem *bsem_p) { |
no outgoing calls
no test coverage detected