CEventLoop: Consolidate gettimeofday() syscalls.

This commit is contained in:
Andreas Kling 2019-04-18 01:37:23 +02:00
commit 8e0611201e
Notes: sideshowbarker 2024-07-19 14:40:28 +09:00
2 changed files with 13 additions and 10 deletions

View file

@ -65,8 +65,8 @@ private:
bool should_reload { false };
WeakPtr<CObject> owner;
void reload();
bool has_expired() const;
void reload(const timeval& now);
bool has_expired(const timeval& now) const;
};
static HashMap<int, OwnPtr<EventLoopTimer>>* s_timers;