Disable MultiThreading

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
OoDeLally
Posts: 3
Joined: 2012-07-12T18:40:27-07:00
Authentication code: 13

Disable MultiThreading

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Disable MultiThreading

Post 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
OoDeLally
Posts: 3
Joined: 2012-07-12T18:40:27-07:00
Authentication code: 13

Re: Disable MultiThreading

Post 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 :/
OoDeLally
Posts: 3
Joined: 2012-07-12T18:40:27-07:00
Authentication code: 13

Re: Disable MultiThreading

Post by OoDeLally »

It seems to work fine. Thank you :)
Post Reply