| 159 | } |
| 160 | |
| 161 | int bthread_sem_timedwait(bthread_sem_t* sem, const struct timespec* abstime) { |
| 162 | return bthread::bthread_sem_wait_impl(sem, abstime); |
| 163 | } |
| 164 | |
| 165 | int bthread_sem_post(bthread_sem_t* sem) { |
| 166 | return bthread::bthread_sem_post(sem, 1); |