| 1418 | #pragma GCC diagnostic pop |
| 1419 | |
| 1420 | __attribute__((noinline)) |
| 1421 | static int do_thread_usleep(Timeout timeout, RunQ rq) { |
| 1422 | auto r = prepare_usleep(timeout, nullptr, rq); |
| 1423 | switch_context(r.from, r.to); |
| 1424 | assert(r.from->waitq == nullptr); |
| 1425 | return r.from->set_error_number(); |
| 1426 | } |
| 1427 | static int do_shutdown_usleep(Timeout timeout, RunQ rq) { |
| 1428 | timeout.timeout_at_most(10 * 1000); |
| 1429 | int ret = do_thread_usleep(timeout, rq); |
no test coverage detected