mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
gtask: Clarify what counts as ‘too many tasks’ for rate limiting
However, GLib still can’t guarantee to do rate limiting, as the type of rate limiting which is appropriate depends on what tasks are being run, and the GTask thread pool is shared between all tasks (of many different types) in a process space. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2368
This commit is contained in:
parent
23277fbcad
commit
13ba8d82ab
@ -1528,9 +1528,9 @@ g_task_start_task_thread (GTask *task,
|
|||||||
*
|
*
|
||||||
* Although GLib currently rate-limits the tasks queued via
|
* Although GLib currently rate-limits the tasks queued via
|
||||||
* g_task_run_in_thread(), you should not assume that it will always
|
* g_task_run_in_thread(), you should not assume that it will always
|
||||||
* do this. If you have a very large number of tasks to run, but don't
|
* do this. If you have a very large number of tasks to run (several tens of
|
||||||
* want them to all run at once, you should only queue a limited
|
* tasks), but don't want them to all run at once, you should only queue a
|
||||||
* number of them at a time.
|
* limited number of them (around ten) at a time.
|
||||||
*
|
*
|
||||||
* Since: 2.36
|
* Since: 2.36
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user