implement 'priority thread' in demon, to prefer debug events from selected thread - greatly improves multithreaded stepping

This commit is contained in:
Ryan Fleury committed 2025-07-16 15:38:27 -07:00
1 parent db52ba32e6
commit 6e6a2df0cb
4 files changed
+73 -39

No files matched your search

+1
View File
@@ -5870,6 +5870,7 @@ ctrl_thread__run(DMN_CtrlCtx *ctrl_ctx, CTRL_Msg *msg)
//- rjf: setup run controls
//
DMN_RunCtrls run_ctrls = {0};
run_ctrls.priority_thread = target_thread.dmn_handle;
run_ctrls.ignore_previous_exception = 1;
run_ctrls.run_entity_count = frozen_threads.count;
run_ctrls.run_entities = push_array(scratch.arena, DMN_Handle, run_ctrls.run_entity_count);