| 196 | } |
| 197 | |
| 198 | void AsyncService::sleep() SKR_NOEXCEPT |
| 199 | { |
| 200 | const auto ms = skr_atomicu32_load_relaxed(&sleep_time); |
| 201 | SkrZoneScopedNC("asyncService(Cond)", tracy::Color::Gray55); |
| 202 | |
| 203 | condlock.lock(); |
| 204 | if (!event) |
| 205 | { |
| 206 | condlock.wait(ms); |
| 207 | } |
| 208 | event = false; |
| 209 | condlock.unlock(); |
| 210 | } |
| 211 | |
| 212 | } // namespace skr |
nothing calls this directly
no test coverage detected