mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:52:44 +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
					
				
					 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
	
	 Sergey Bugaev
						Sergey Bugaev