| 425 | } |
| 426 | |
| 427 | int Signal() { |
| 428 | int ret = 0; |
| 429 | bthread_mutex_lock(&_mutex); |
| 430 | _count --; |
| 431 | bthread_cond_signal(&_cond); |
| 432 | bthread_mutex_unlock(&_mutex); |
| 433 | return ret; |
| 434 | } |
| 435 | |
| 436 | int Wait() { |
| 437 | int ret = 0; |
nothing calls this directly
no test coverage detected