mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	Kernel: Fix a typo and a grammar issue in code comments
This commit is contained in:
		
							parent
							
								
									09d5360be3
								
							
						
					
					
						commit
						22f7e800d2
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1494,7 +1494,7 @@ void Thread::track_lock_release(LockRank rank) | ||||||
|     // This is validated by toggling the least significant bit of the mask, and
 |     // This is validated by toggling the least significant bit of the mask, and
 | ||||||
|     // then bit wise or-ing the rank we are trying to release with the resulting
 |     // then bit wise or-ing the rank we are trying to release with the resulting
 | ||||||
|     // mask. If the rank we are releasing is truly the highest rank then the mask
 |     // mask. If the rank we are releasing is truly the highest rank then the mask
 | ||||||
|     // we get back will be equal to the current mask of stored on the thread.
 |     // we get back will be equal to the current mask stored on the thread.
 | ||||||
|     auto rank_is_in_order = [](auto mask_enum, auto rank_enum) -> bool { |     auto rank_is_in_order = [](auto mask_enum, auto rank_enum) -> bool { | ||||||
|         auto mask = to_underlying(mask_enum); |         auto mask = to_underlying(mask_enum); | ||||||
|         auto rank = to_underlying(rank_enum); |         auto rank = to_underlying(rank_enum); | ||||||
|  |  | ||||||
|  | @ -62,7 +62,7 @@ bool TimerQueue::add_timer_without_id(NonnullRefPtr<Timer> timer, clockid_t cloc | ||||||
| 
 | 
 | ||||||
|     // Because timer handlers can execute on any processor and there is
 |     // Because timer handlers can execute on any processor and there is
 | ||||||
|     // a race between executing a timer handler and cancel_timer() this
 |     // a race between executing a timer handler and cancel_timer() this
 | ||||||
|     // *must* be a RefPtr<Timer>. Otherwise calling cancel_timer() could
 |     // *must* be a RefPtr<Timer>. Otherwise, calling cancel_timer() could
 | ||||||
|     // inadvertently cancel another timer that has been created between
 |     // inadvertently cancel another timer that has been created between
 | ||||||
|     // returning from the timer handler and a call to cancel_timer().
 |     // returning from the timer handler and a call to cancel_timer().
 | ||||||
|     timer->setup(clock_id, deadline, move(callback)); |     timer->setup(clock_id, deadline, move(callback)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brian Gianforcaro
						Brian Gianforcaro