Skip to content

Commit 44ef751

Browse files
authored
Merge pull request #75 from georgiy-belyanin/fix-spurious-debug-wakeups
Fix spurious continue in the debug mode
2 parents 7d0a4a9 + 3f7ccc0 commit 44ef751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emmy_debugger/src/debugger/emmy_debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ void Debugger::EnterDebugMode() {
660660
std::unique_lock<std::mutex> lockEval(evalMtx);
661661
if (evalQueue.empty() && blocking) {
662662
lockEval.unlock();
663-
cvRun.wait(lock);
663+
cvRun.wait(lock, [this] { return !blocking || !evalQueue.empty(); });
664664
lockEval.lock();
665665
}
666666
if (!evalQueue.empty()) {

0 commit comments

Comments
 (0)