Page 1 of 1

Disable MultiThreading

Posted: 2012-07-12T18:44:32-07:00
by OoDeLally
Hi,

I'm using Magick++ with Intel's TBB.
I saw that Magick uses threads for processing, and I would like to disable them, in order not to get conflicts with TBB.
Is there somewhere an option to disable the multithreading ?

Thank you

Re: Disable MultiThreading

Posted: 2012-07-12T18:50:47-07:00
by fmw42
see viewtopic.php?f=2&t=20756&p=83407&hilit=thread#p83407, but i don't know the equivalent outside the command line. Otherwise, recompile iM see --without-threads at http://www.imagemagick.org/script/advan ... lation.php

Re: Disable MultiThreading

Posted: 2012-07-12T19:06:45-07:00
by OoDeLally
Hi fmw42,

Thank you for your reply.
I tried :
#define MAGICK_THREAD_LIMIT 1

But no result. It seems to work only with the environnement variables on the command line.

I'm gonna try to recomplile with the --without-threads option. Too bad this affects all the system :/

Re: Disable MultiThreading

Posted: 2012-07-12T20:09:20-07:00
by OoDeLally
It seems to work fine. Thank you :)