Philip Withnall e89128a935 gtask: Add a g_task_set_name() method
Similarly to g_source_set_name(), this sets a name on a GTask for
debugging and profiling. Importantly, this name is propagated to the
GSource for idle callbacks for the GTask, ending the glorious reign of
`[gio] complete_in_idle_cb`.

The name can be queried using g_task_get_name(). Locking is avoided by
only allowing the name to be set before the GTask is used from another
thread.

Includes tests.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2018-10-30 11:51:50 +00:00
..
2013-10-17 10:12:27 -04:00
2011-12-08 18:05:12 -05:00
2011-12-08 18:05:12 -05:00
2018-09-23 16:09:34 -04:00
2013-01-01 10:25:07 -05:00
2016-07-16 20:32:16 -04:00