DBG: comments for GuiProcessEvents calls
This commit is contained in:
parent
73c3628d62
commit
4befc5e4d5
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue