Gimp/app/text
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 enums: add intermediate generated enum files to .gitignore 2017-08-24 15:35:27 -04:00
gimpfont.c app: call the standard font "Standard" not "Sans-serif" 2018-06-03 23:13:55 +02:00
gimpfont.h app: make gimp_font_get_standard() return a GimpData 2018-06-03 22:46:48 +02:00
gimpfontfactory.c app: add gimp_parallel_run_async_{full,independent}() 2018-07-01 13:52:21 -04:00
gimpfontfactory.h app: add new GimpDataFactory subclass GimpFontFactory 2018-06-03 01:25:25 +02:00
gimptext-compat.c app: remove all old font management code, switch to GimpFontFactory[View] 2018-06-03 01:27:06 +02:00
gimptext-compat.h app, pdb: wait for fonts to load before dependent operations 2018-05-29 16:04:28 -04:00
gimptext-parasite.c
gimptext-parasite.h
gimptext-vectors.c Bug 662787 - Segfaults when trying to set a large text size 2013-10-24 20:23:51 +13:00
gimptext-vectors.h
gimptext-xlfd.c Bug 795557 - Misc. typo fixes in source, comments and doxygen (pt3) 2018-04-25 23:49:06 +02:00
gimptext-xlfd.h
gimptext.c app: port tons of files to the new GIMP_CONFIG_PROP_FOO() macros 2016-02-11 23:46:24 +01:00
gimptext.h
gimptextlayer-transform.c app,libgimp*: fix includes to follow our include policy 2013-10-15 01:58:39 +02:00
gimptextlayer-transform.h app, pdb, libgimp: Remove all traces of the supersampling recursion level 2013-05-31 01:15:32 +02:00
gimptextlayer-xcf.c app: add gimp_drawable_{start,end,flush}_paint() 2018-04-08 09:42:47 -04:00
gimptextlayer-xcf.h
gimptextlayer.c app: use default new-layer mode for layer groups and text layers 2018-06-06 02:39:34 -04:00
gimptextlayer.h
gimptextlayout-render.c Bug 726495 - "Text to path" delivers a path offset from the text 2014-04-11 16:56:29 +02:00
gimptextlayout-render.h
gimptextlayout.c Bug 774383 - Text layer created by gimp-text-fontname doesn't... 2016-11-15 13:23:00 +01:00
gimptextlayout.h Bug 795557 - Misc. typo fixes in source, comments and doxygen (pt3) 2018-04-25 23:49:06 +02:00
gimptextundo.c app: replace all g_assert() by the newly added gimp_assert() 2018-02-11 22:23:10 +01:00
gimptextundo.h
Makefile.am app: remove all old font management code, switch to GimpFontFactory[View] 2018-06-03 01:27:06 +02:00
text-enums.c enums: generate enum files in source dir 2017-05-06 17:26:16 -04:00
text-enums.h app: remove /*< skip >*/ and /*< pdb-skip >*/ annotations from enums 2016-01-07 17:44:46 +01:00
text-types.h app: add new GimpDataFactory subclass GimpFontFactory 2018-06-03 01:25:25 +02:00