mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
CEventLoop: Consolidate gettimeofday() syscalls.
This commit is contained in:
parent
ab539460de
commit
8e0611201e
2 changed files with 13 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue