• Philip Withnall's avatar
    gtask: Ignore errors from g_thread_pool_push() · f41ebebd
    Philip Withnall authored
    g_thread_pool_push() only returns an error if it fails to spawn a new
    thread. However, it unconditionally adds the task to its worker queue,
    so:
     • if _any_ threads exist in the pool, the task will eventually be
       handled; and
     • if _no_ threads exist in the pool, the task will be handled if one
       is eventually successfully spawned.
    If no more threads are ever spawned, the process probably has bigger
    problems than a single GTask which is taking forever to complete.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736806
    f41ebebd
gtask.c 53.8 KB