Gimp/app/gui
Ell fac91ddad4 app: add gimp_parallel_run_async_{full,independent}()
Remove the "independent" parameter of gimp_parallel_run_async(),
and have the function always execute the passed callback in the
shared async thread-pool.

Add a new gimp_parallel_run_async_full() function, taking, in
addition to a callback and a data pointer:

  - A priority value, controlling the priority of the callback in
    the async thread-pool queue.  0 is the default priority (used
    by gimp_parallel_run_async()), negative values have higher
    priority, and positive values have lower priority.

  - A destructor function for the data pointer.  This function is
    called to free the user data in case the async operation is
    canceled before execution of the callback function begins, and
    the operation is dropped from the queue and aborted without
    executing the callback.  Note that if the callback *is*
    executed, the destructor is *not* used -- it's the callback's
    responsibility to free/recycle the user data.

Add a separate gimp_parallel_run_async_independent() function,
taking the same parameters, and executing the passed callback in
an independent thread, rather than the thread pool.  This function
doesn't take a priority value or a destructor (and there's no
corresponding "_full()" variant that does), since they're pointless
for independent threads.

Adapt the rest of the code to the changes.

(cherry picked from commit b74e600c12)
2018-07-04 16:12:21 -04:00
..
.gitignore Bug 622934 - Migrate from dbus-glib to glib's GDBus 2013-05-24 23:25:47 +02:00
dbus-service.xml app: batch commands won't run on existing instance. 2015-09-28 22:31:21 +02:00
gimpdbusservice.c app: clean out tab indentations. 2016-12-21 04:05:32 +01:00
gimpdbusservice.h Bug 622934 - Migrate from dbus-glib to glib's GDBus 2013-05-24 23:25:47 +02:00
gimpuiconfigurer.c app: replace all g_assert() by the newly added gimp_assert() 2018-02-11 22:23:10 +01:00
gimpuiconfigurer.h app: Move docks to image window in 'Single-window mode' 2009-10-04 02:10:11 +02:00
gui-message.c app: s/GtkObject/GObject/ in gui-message.c, and minor reordering 2018-04-28 02:18:44 +02:00
gui-message.h app: keep track of number of errors and traces in GimpCriticalDialog. 2018-02-12 02:09:15 +01:00
gui-types.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gui-unique.c Bug 794996 - Misc. typo fixes in comments in app/ 2018-04-08 21:25:56 +02:00
gui-unique.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gui-vtable.c app: add gimp_parallel_run_async_{full,independent}() 2018-07-04 16:12:21 -04:00
gui-vtable.h app: pass the startup monitor to displays opened from the copmmand line 2014-05-03 00:54:20 +02:00
gui.c Bug 794996 - Misc. typo fixes in comments in app/ 2018-04-08 21:25:56 +02:00
gui.h app: output a dialog to recover images salvaged after a crash. 2018-03-23 00:57:56 +01:00
icon-themes.c Bug 759904: Some icons can't be set from the icon theme 2016-09-02 12:30:49 +02:00
icon-themes.h Bug 759105 - Patch to add icon theme selection 2015-12-09 12:50:15 +01:00
Makefile.am Makefiles: don't use -xobjective-c when linking files on Mac 2018-04-08 04:03:55 -04:00
session.c app: move error console highlight flags to aux-info 2017-11-13 10:19:12 -05:00
session.h app: make sure the GUI appears on the same monitor as the splash 2014-05-02 21:16:17 +02:00
splash.c app: make the splash texts dynamic, so they are larger on larger splashes 2018-05-08 22:54:53 +02:00
splash.h app: make sure the GUI appears on the same monitor as the splash 2014-05-02 21:16:17 +02:00
themes.c Bug 770424 - Themes: insensitive menu item are not readable 2018-04-07 12:33:18 +02:00
themes.h app: keep the theme directories around a GFiles 2014-07-20 17:09:25 +02:00