Setting thread limit = 1 programmatically in Magick++
Posted: 2015-07-15T12:13:34-07:00
Hello,
when I want to "disable" OpenMP while using the convert command I simply use
Now I've a C++ program where I'm using the Magick++ API.
My question: Is there a way to limit the maximum thread amount programmatically?
I know about setting MAGICK_THREAD_LIMIT=1 in /etc/Environment - but I would like to set the limit in my code.
Best regards.
when I want to "disable" OpenMP while using the convert command I simply use
Code: Select all
convert -limit thread 1 in.png out.jpg
My question: Is there a way to limit the maximum thread amount programmatically?
I know about setting MAGICK_THREAD_LIMIT=1 in /etc/Environment - but I would like to set the limit in my code.
Best regards.