Imager::Threads(3pm) User Contributed Perl Documentation Imager::Threads(3pm)

Imager::Threads - Imager and threads

  use Imager;
  use threads;
  Imager->preload;
  threads->create(...);

Starting from version 0.94 Imager attempts to work safely with perl's "ithreads".

Previous versions stored some state in global variables, in particular the internal error stack.

However there are some limitations:

Note that if you have another module using "libtiff", "giflib" or "t1lib" it may interact with Imager's use of those libraries in a threaded environment, since there's no way to co-ordinate access to the global information "libtiff", "giflib" and "t1lib" maintain.

Imager currently doesn't use threads itself, except for testing its threads support.

Imager, "threads"

Tony Cook <tony@cpan.org>

2024-04-01 perl v5.38.2