Utilities/sema.cpp: Minor optimization

This commit is contained in:
Elad 2026-05-22 15:10:16 +03:00
parent 24a1576629
commit 537ad399bb

View File

@ -41,7 +41,13 @@ void semaphore_base::imp_wait()
// Add waiter
value += c_waiter;
}
});
else
{
return false;
}
return true;
}).first;
if (value & c_value_mask)
{