event/Loop: move call to FlushClockCaches()

This commit is contained in:
Max Kellermann 2022-09-28 10:02:59 +02:00
parent db21e20c99
commit ac7bf12743
2 changed files with 6 additions and 2 deletions

View File

@ -296,7 +296,7 @@ EventLoop::Run() noexcept
}; };
#endif #endif
steady_clock_cache.flush(); FlushClockCaches();
do { do {
again = false; again = false;
@ -341,7 +341,7 @@ EventLoop::Run() noexcept
Wait(timeout); Wait(timeout);
steady_clock_cache.flush(); FlushClockCaches();
#ifdef HAVE_THREADED_EVENT_LOOP #ifdef HAVE_THREADED_EVENT_LOOP
{ {

View File

@ -182,6 +182,10 @@ public:
return steady_clock_cache.now(); return steady_clock_cache.now();
} }
void FlushClockCaches() noexcept {
steady_clock_cache.flush();
}
#ifdef HAVE_URING #ifdef HAVE_URING
[[gnu::pure]] [[gnu::pure]]
Uring::Queue *GetUring() noexcept; Uring::Queue *GetUring() noexcept;