orbis-kernel: umtx: fix random hangs

This commit is contained in:
DH 2024-11-14 21:23:51 +03:00
parent ddad35e1ee
commit 239d554c66

View file

@ -48,7 +48,7 @@ uint UmtxChain::notify_n(const UmtxKey &key, sint count) {
n++;
count--;
if (it == sleep_queue.end()) {
if (it->first != key || it == sleep_queue.end()) {
break;
}
}