Suspend some host threads that make guest callbacks.

This commit is contained in:
Ben Vanik
2015-09-21 21:24:26 -07:00
parent 4c8634bc31
commit 3fc1d02a09
8 changed files with 25 additions and 8 deletions

View File

@@ -1104,7 +1104,7 @@ void DebugWindow::DrawThreadsPane() {
ImGui::SetNextTreeNodeOpened(true, ImGuiSetCond_Always);
}
const char* state_label = "?";
if (thread->is_guest_thread()) {
if (thread->can_debugger_suspend()) {
if (thread->is_running()) {
if (thread->suspend_count() > 1) {
state_label = "SUSPEND";