mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibCore: Fix timer expiration processing
The previous code did not account for the case when there are timers present, but none are enabled, and used a zero polling timeout. Fixes https://github.com/SerenityOS/serenity/issues/2222
This commit is contained in:
parent
b8fef58c0c
commit
345fbd1fc1
Notes:
sideshowbarker
2024-07-19 06:37:56 +09:00
Author: https://github.com/bugaevc
Commit: 345fbd1fc1
Pull-request: https://github.com/SerenityOS/serenity/pull/2237
2 changed files with 9 additions and 12 deletions
|
@ -77,7 +77,7 @@ public:
|
|||
|
||||
private:
|
||||
void wait_for_event(WaitMode);
|
||||
void get_next_timer_expiration(timeval&);
|
||||
Optional<struct timeval> get_next_timer_expiration();
|
||||
|
||||
struct QueuedEvent {
|
||||
AK_MAKE_NONCOPYABLE(QueuedEvent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue