mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
Kernel: Simplify some if statements
This commit is contained in:
parent
04d75f4ff9
commit
23037d619a
3 changed files with 3 additions and 8 deletions
|
@ -517,7 +517,7 @@ void Scheduler::invoke_async()
|
|||
|
||||
void Scheduler::notify_finalizer()
|
||||
{
|
||||
if (g_finalizer_has_work.exchange(true, AK::MemoryOrder::memory_order_acq_rel) == false)
|
||||
if (!g_finalizer_has_work.exchange(true, AK::MemoryOrder::memory_order_acq_rel))
|
||||
g_finalizer_wait_queue->wake_all();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue