| 29 | } |
| 30 | |
| 31 | bool CThreadInterrupt::sleep_for(std::chrono::milliseconds rel_time) |
| 32 | { |
| 33 | WAIT_LOCK(mut, lock); |
| 34 | return !cond.wait_for(lock, rel_time, [this]() { return flag.load(std::memory_order_acquire); }); |
| 35 | } |
| 36 | |
| 37 | bool CThreadInterrupt::sleep_for(std::chrono::seconds rel_time) |
| 38 | { |
no test coverage detected