mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
AK: Make timeval_add() and timeval_sub() take references.
This commit is contained in:
parent
bf905225e7
commit
29a9430246
Notes:
sideshowbarker
2024-07-19 13:43:30 +09:00
Author: https://github.com/awesomekling
Commit: 29a9430246
4 changed files with 19 additions and 18 deletions
|
@ -191,7 +191,7 @@ void CEventLoop::wait_for_event(WaitMode mode)
|
|||
if (!s_timers->is_empty() && queued_events_is_empty) {
|
||||
gettimeofday(&now, nullptr);
|
||||
get_next_timer_expiration(timeout);
|
||||
AK::timeval_sub(&timeout, &now, &timeout);
|
||||
timeval_sub(timeout, now, timeout);
|
||||
} else {
|
||||
should_wait_forever = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue