| 132 | bool g_stopped = false; |
| 133 | |
| 134 | void wait_op(bthread_sem_t* sem, int64_t sleep_us) { |
| 135 | ASSERT_EQ(0, bthread_sem_wait(sem)); |
| 136 | if (0 != sleep_us) { |
| 137 | bthread_usleep(sleep_us); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | void post_op(bthread_sem_t* rw, int64_t sleep_us) { |
| 142 | ASSERT_EQ(0, bthread_sem_post(rw)); |
nothing calls this directly
no test coverage detected