Which thread lib to use on Win32 and other systems (was Re:
[cairo] Recommendations for 1.4.0
Dave Yeo
daveryeo at telus.net
Mon Mar 5 11:15:30 PST 2007
On Mon, 5 Mar 2007 20:30:59 +0200, Tor Lillqvist wrote:
>Behdad Esfahbod writes:
> > which thread library should we prefer: pthread or native threads?
>
>You mean just on Win32, or in general? Depends on how "foreign"
>pthreads is on the platform in question. On most modern Unixes,
>pthread comes with the OS, and is pretty close to native threads,
>isn't it? The pthread API is used by much (most?) GNOMEish or KDEish
>software already anyway on such platforms, yes?
>
>But on Win32 pthreads-win32 is a 3rd-party DLL. No reason to drag in a
>pthreads dependency there just for something as simple as in-process
>mutexes.
>
> > I think the current "prefer pthread" is Ok if we provide a
> > --without-pthread option. Comments?
>
>Sounds OK.
>
>--tml
I would have to agree with the above as on OS/2 pthreads is also a
third party lib and IIRC is not 100%. Also in general native threads
should be more efficient
Still nice to have choice
Dave
More information about the cairo
mailing list