Skip to content

gdebugcontrollerdbus: Track pending tasks with weak refs

Philip Withnall requested to merge pwithnall/glib:debugcontroller-test-fix into main

Rather than tracking them with a counter. This should close the race in tracking the finalisation of the tasks by the task worker thread. There’s no way to synchronise with that thread as it’s internal to g_task_run_in_thread().

This should hopefully stop the debugcontroller test being flaky.

See !2486 (comment 1384102)

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Merge request reports