Skip to content
Snippets Groups Projects
Commit 7ccce983 authored by aroulin's avatar aroulin
Browse files

Qt: Fix disassembly widget stepping

parent c4e11519
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ void EmuThread::run() {
was_active = false;
} else {
std::unique_lock<std::mutex> lock(running_mutex);
running_cv.wait(lock, [this]{ return IsRunning() || stop_run; });
running_cv.wait(lock, [this]{ return IsRunning() || exec_step || stop_run; });
}
}
......
......@@ -35,7 +35,10 @@ public:
* Steps the emulation thread by a single CPU instruction (if the CPU is not already running)
* @note This function is thread-safe
*/
void ExecStep() { exec_step = true; }
void ExecStep() {
exec_step = true;
running_cv.notify_all();
}
/**
* Sets whether the emulation thread is running or not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment