On Fri, 14 Feb 2014, marti.ma...@littlecms.com wrote:
>
> This is actually my big headache. To do that, I need to add a pthreads
> dependency.
>
> Quite probably this is the best option at all. And pthreads will be
> used as a default for read/write profile locking, which may be
> overriden by locking plug-in.
>
> Any thoughts?

GraphicsMagick adds a pthreads dependency by default so we have a lot 
of experience with this.  It is good to be aware that libtool will 
then impact you by adding whatever option enables pthreads in the 
compiler to its installed .la file so the option is replayed when 
software depending on the library is compiled.  Systems with multiple 
compilers might not all use the same options to enable pthreads and so 
you might hear some new complaints due to unexpected compilation 
failure of dependent software. I encounter this issue on Solaris 
between GCC and the Sun/Oracle C compiler.

There do exist systems which have different threading modes and 
pthreads is one of several threading modes.  SGI's defunct IRIX is a 
good example of this.

It is possible (I am not completely sure) that the GO language 
implementation has a threading model which is funky with posix mutexes 
because it uses a multi-tier threading strategy mixing both green and 
native threading models.  GO language code can link with C language 
libraries.

By depending on pthreads one is hoping that the pthread mutex will 
work with whatever threading model is actually used (i.e. everything 
funnels down to a consisting locking implementation).  This is a safe 
assumption on most systems.

Bob
-- 
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to