| 32 | } |
| 33 | |
| 34 | void* sem_poster(void* arg) { |
| 35 | bthread_usleep(10 * 1000); |
| 36 | auto sem = (bthread_sem_t*)arg; |
| 37 | for (size_t i = 0; i < SEM_COUNT; ++i) { |
| 38 | bthread_sem_post(sem); |
| 39 | } |
| 40 | return NULL; |
| 41 | } |
| 42 | |
| 43 | TEST(SemaphoreTest, sanity) { |
| 44 | bthread_sem_t sem; |
nothing calls this directly
no test coverage detected