From 70c64ddcd21a83f58f9f3f31b85e86fba457de83 Mon Sep 17 00:00:00 2001 From: Folkert van Heusden Date: Wed, 26 Jun 2024 20:46:21 +0200 Subject: [PATCH] race for cond.var. --- cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index c8c76d4..1d02c24 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1685,7 +1685,7 @@ bool cpu::misc_operations(const uint16_t instr) #else std::unique_lock lck(qi_lock); - if (check_pending_interrupts() == false) + while (check_pending_interrupts() == false) qi_cv.wait(lck); #endif uint64_t end = get_us();