From 239d554c6601c9a1137bb1f3602b5523b0333295 Mon Sep 17 00:00:00 2001 From: DH Date: Thu, 14 Nov 2024 21:23:51 +0300 Subject: [PATCH] orbis-kernel: umtx: fix random hangs --- orbis-kernel/src/umtx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbis-kernel/src/umtx.cpp b/orbis-kernel/src/umtx.cpp index efd3e857e..308a7cca0 100644 --- a/orbis-kernel/src/umtx.cpp +++ b/orbis-kernel/src/umtx.cpp @@ -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; } }