mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:32:43 +00:00 
			
		
		
		
	Kernel: Add WaitQueue::wait_forever and it use it for all infinite waits.
In preparation for marking BlockingResult [[nodiscard]], there are a few places that perform infinite waits, which we never observe the result of the wait. Instead of suppressing them, add an alternate function which returns void when performing and infinite wait.
This commit is contained in:
		
							parent
							
								
									4ac286903d
								
							
						
					
					
						commit
						ddd79fe2cf
					
				
					 9 changed files with 15 additions and 9 deletions
				
			
		|  | @ -392,7 +392,7 @@ void NE2000NetworkAdapter::send_raw(ReadonlyBytes payload) | |||
|     } | ||||
| 
 | ||||
|     while (in8(REG_RW_COMMAND) & BIT_COMMAND_TXP) | ||||
|         m_wait_queue.wait_on({}, "NE2000NetworkAdapter"); | ||||
|         m_wait_queue.wait_forever("NE2000NetworkAdapter"); | ||||
| 
 | ||||
|     disable_irq(); | ||||
|     size_t packet_size = payload.size(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brian Gianforcaro
						Brian Gianforcaro