mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 14:28:40 +00:00
time-based exit path for demon win32 event consumption loop, to not overly-aggressively-buffer things
This commit is contained in:
@@ -1552,6 +1552,7 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls)
|
|||||||
//////////////////////////
|
//////////////////////////
|
||||||
//- rjf: loop, consume win32 debug events until we produce the relevant demon events
|
//- rjf: loop, consume win32 debug events until we produce the relevant demon events
|
||||||
//
|
//
|
||||||
|
U64 begin_time = os_now_microseconds();
|
||||||
String8List debug_strings = {0};
|
String8List debug_strings = {0};
|
||||||
for(B32 keep_going = 1; keep_going;)
|
for(B32 keep_going = 1; keep_going;)
|
||||||
{
|
{
|
||||||
@@ -2198,6 +2199,14 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls)
|
|||||||
}break;
|
}break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////
|
||||||
|
//- rjf: exit loop after a little while, so we keep pumping e.g. debug strings
|
||||||
|
//
|
||||||
|
if(os_now_microseconds() >= begin_time+100000)
|
||||||
|
{
|
||||||
|
keep_going = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////
|
////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user