forked from eden-emu/eden
		
	k_scheduler: Mark KScopedSchedulerLock as [[nodiscard]]
Prevents logic bugs like:
KScopedSchedulerLock{kernel};
instead of:
KScopedSchedulerLock lk{kernel};
from slipping through.
			
			
This commit is contained in:
		
							parent
							
								
									9bdff13849
								
							
						
					
					
						commit
						cd6ea98890
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -198,7 +198,7 @@ private: | |||
|     Common::SpinLock guard{}; | ||||
| }; | ||||
| 
 | ||||
| class KScopedSchedulerLock : KScopedLock<GlobalSchedulerContext::LockType> { | ||||
| class [[nodiscard]] KScopedSchedulerLock : KScopedLock<GlobalSchedulerContext::LockType> { | ||||
| public: | ||||
|     explicit KScopedSchedulerLock(KernelCore& kernel); | ||||
|     ~KScopedSchedulerLock(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash