mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 11:42:10 +01:00
Merge branch 'task-shared-resource-docs' into 'main'
gtask: Document that g_task_run_in_thread() uses a shared resource See merge request GNOME/glib!3395
This commit is contained in:
commit
0c81ab6dac
@ -1634,6 +1634,13 @@ g_task_start_task_thread (GTask *task,
|
||||
* tasks), but don't want them to all run at once, you should only queue a
|
||||
* limited number of them (around ten) at a time.
|
||||
*
|
||||
* Be aware that if your task depends on other tasks to complete, use of this
|
||||
* function could lead to a livelock if the other tasks also use this function
|
||||
* and enough of them (around 10) execute in a dependency chain, as that will
|
||||
* exhaust the thread pool. If this situation is possible, consider using a
|
||||
* separate worker thread or thread pool explicitly, rather than using
|
||||
* g_task_run_in_thread().
|
||||
*
|
||||
* Since: 2.36
|
||||
*/
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user