libvips/libvips/create
John Cupitt 976db37f84
Revised threading system (#3105)
* reimplement threadpool

just a set of threads that get recycled

"ninja test" passes and dzsave seems to work, though pytest fails for
some reason

* clean up threading code a bit

move base stuff into thread.c, so we have a simple

	thread -> threadset -> threadpool

layering

* start trying to revert g_threadpool

based on the original commit

* working!

nice low systime again

still need to repply cnages to threadpool.c since 80e0cc3d1

* reapply fixes from master

so threadpool.c is now up to date

* rename VipsThread as VipsWorker

a bit less confusing

* use a semaphore to count workers in a pool

* tidy up

* formatting

* dynamic threadpool sizing

based on counting the number of blocked threads in each pool

it works, but the improvement is not great :(

* add "concurrency" metadata item

so operators can hint threadpool size (dzsave especially)

* don't use thinstrip for small images

* add RGB mode to openslide

since flatten was taking 20% of CPU time for dzsave

* fix up rgb mode

now actually works

* make the tile buffer per thread

in the new openslideload rgb mode

* fix dynamic pool downsize

* mild refactoring

* fix the buffer system

oops, turned it off by mistake

* all done!

* revise changelog

* Update libvips/iofuncs/threadset.c

Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl>

* Update libvips/iofuncs/threadset.c

Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl>

* LSan: add libMagickCore to suppression file

* Revert "Remove mutex lock for VipsThreadStartFn"

This reverts commit 41440491.

* add VIPS_MAX_THREADS

to set a hard limit on the threadset size

* Revert "Revert "Remove mutex lock for VipsThreadStartFn""

This reverts commit 77e8520966ba79194fff3b4e648bbd295cd5c260.

* remove sslock from sink.c

* move fixed threadpool build to init

not first use

* add some doc comments

* revert test suite threshold change

* add a test for MAX_THREADS

and move the test tmp/ area into the builddir

* limit VIPS_MAX_THREADS to sane values

* use tabs rather than spaces

Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl>
2022-10-26 15:25:19 +01:00
..
black.c Revised threading system (#3105) 2022-10-26 15:25:19 +01:00
buildlut.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
create.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
eye.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
fractsurf.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
gaussmat.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
gaussnoise.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
grey.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
identity.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
invertlut.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
logmat.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask_butterworth.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask_butterworth_band.c Update C++ binding and function list (#2851) 2022-06-10 14:43:44 +01:00
mask_butterworth_ring.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask_fractal.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask_gaussian.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask_gaussian_band.c Update C++ binding and function list (#2851) 2022-06-10 14:43:44 +01:00
mask_gaussian_ring.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask_ideal.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
mask_ideal_band.c Update C++ binding and function list (#2851) 2022-06-10 14:43:44 +01:00
mask_ideal_ring.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
meson.build Improve symbol visibility (#2688) 2022-04-16 10:58:55 +01:00
pcreate.h fix up gtk-doc 2013-06-17 20:16:20 +01:00
perlin.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
pmask.h more vips7 compat fixes 2014-07-16 09:40:26 +01:00
point.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
point.h rewrite (most of) the freq mask builders 2014-01-02 18:29:59 +00:00
sines.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
text.c text: simplify check for 32k pixel limit (#3057) 2022-09-21 19:06:49 +01:00
tonelut.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
worley.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
xyz.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00
zone.c Cleanup gettext handling (#2695) 2022-02-27 15:27:28 +00:00