Utilities/sema.cpp: Minor optimization

This commit is contained in:
Elad 2026-05-22 15:10:16 +03:00
parent 356a3a481c
commit aeeacc3e2c

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)
{