| 7318 | } |
| 7319 | |
| 7320 | void wakeTimeThread() { |
| 7321 | updateCachedTime(); |
| 7322 | aeThreadOffline(); |
| 7323 | std::unique_lock<fastlock> lock(time_thread_lock); |
| 7324 | aeThreadOnline(); |
| 7325 | if (sleeping_threads >= cserver.cthreads) |
| 7326 | time_thread_cv.notify_one(); |
| 7327 | sleeping_threads--; |
| 7328 | serverAssert(sleeping_threads >= 0); |
| 7329 | } |
| 7330 | |
| 7331 | void *timeThreadMain(void*) { |
| 7332 | timespec delay; |
no test coverage detected