Gimp/app/gui
Ell b74e600c12 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.
2018-07-01 13:52: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 Port a lot of stuff from GdkScreen/monitor_number to GdkMonitor 2018-05-20 21:06:30 +02:00
gimpdbusservice.h Bug 622934 - Migrate from dbus-glib to glib's GDBus 2013-05-24 23:25:47 +02:00
gimpuiconfigurer.c app: undeprecate GimpUIConfigurer, don't use gtk_window_parse_geometry() 2018-05-20 21:06:35 +02: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: allow setting parent for dialogs created by GimpDialogFactory. 2018-05-20 21:06:33 +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 app: finish porting GdkScreen/monitor_number to GdkMonitor 2018-05-31 16:33:54 +00: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-01 13:52:21 -04:00
gui-vtable.h Port a lot of stuff from GdkScreen/monitor_number to GdkMonitor 2018-05-20 21:06:30 +02:00
gui.c app, libgimp*: remove the config option to disable tooltips 2018-06-06 19:23:30 +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 Port a lot of stuff from GdkScreen/monitor_number to GdkMonitor 2018-05-20 21:06:30 +02:00
session.h Port a lot of stuff from GdkScreen/monitor_number to GdkMonitor 2018-05-20 21:06:30 +02:00
splash.c app: fix splash text color 2018-05-20 21:06:32 +02:00
splash.h Port a lot of stuff from GdkScreen/monitor_number to GdkMonitor 2018-05-20 21:06:30 +02:00
themes.c app: remove #undef GDK_DISABLE_DEPRECATED 2018-05-20 21:06:30 +02:00
themes.h app: keep the theme directories around a GFiles 2014-07-20 17:09:25 +02:00