1
0
Fork 0

DBG: comments for GuiProcessEvents calls

This commit is contained in:
mrexodia 2016-10-29 18:49:10 +02:00
parent 73c3628d62
commit 4befc5e4d5
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 4 additions and 1 deletions

View File

@ -108,7 +108,7 @@ PLUG_IMPEXP bool _plugin_waituntilpaused()
while(DbgIsDebugging() && dbgisrunning()) //wait until the debugger paused
{
Sleep(1);
GuiProcessEvents();
GuiProcessEvents(); //workaround for scripts being executed on the GUI thread
}
return DbgIsDebugging();
}

View File

@ -327,7 +327,10 @@ static CMDRESULT scriptinternalcmdexec(const char* cmd)
return STATUS_CONTINUE;
auto res = cmddirectexec(cmd);
while(DbgIsDebugging() && dbgisrunning() && !bAbort) //while not locked (NOTE: possible deadlock)
{
Sleep(1);
GuiProcessEvents(); //workaround for scripts being executed on the GUI thread
}
return res ? STATUS_CONTINUE : STATUS_ERROR;
}