[orbis-kernel] Hopefully fix shared_cv

This commit is contained in:
Ivan Chikish 2023-07-07 13:49:59 +03:00
parent 99f520491c
commit 3d78443496
4 changed files with 62 additions and 29 deletions

View file

@ -10,7 +10,9 @@ inline namespace utils {
class shared_cv {
enum : unsigned {
c_waiter_mask = 0xffff,
c_signal_mask = 0xffffffff & ~c_waiter_mask,
c_signal_mask = 0x7fff0000,
c_locked_mask = 0x80000000,
c_signal_one = c_waiter_mask + 1,
};
std::atomic<unsigned> m_value{0};