Skip to content

gtask: Document that g_task_run_in_thread() uses a shared resource

Philip Withnall requested to merge pwithnall/glib:task-shared-resource-docs into main

It’s a bad idea to use it without some care for how much it’s being called in parallel, or dependencies between tasks. If the thread pool gets exhausted by too many inter-dependent calls to g_task_run_in_thread() then the process will livelock.

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

Merge request reports