| 139 | } |
| 140 | |
| 141 | void post_op(bthread_sem_t* rw, int64_t sleep_us) { |
| 142 | ASSERT_EQ(0, bthread_sem_post(rw)); |
| 143 | if (0 != sleep_us) { |
| 144 | bthread_usleep(sleep_us); |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | typedef void (*OP)(bthread_sem_t* sem, int64_t sleep_us); |
| 149 |
nothing calls this directly
no test coverage detected