[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: support for multithread-safe libraries
From: |
Yoann Vandoorselaere |
Subject: |
Re: support for multithread-safe libraries |
Date: |
Tue, 19 Jul 2005 00:01:26 +0200 |
On Mon, 2005-07-18 at 21:41 +0200, Bruno Haible wrote:
> Oskar Liljeblad wrote:
> > http://autoconf-archive.cryp.to/acx_pthread.html uses a set of
> > tests for pthread support.
>
> Thanks for the info. I'll use this as a reference when there's need to.
>
> > Some notes from it:
>
> > -pthread
> > Linux/gcc (kernel threads), BSD/gcc (userland threads), etc.
>
> The only platform that I encountered that needs -pthread (rather than
> -lpthread) is OSF/1.
-pthread not only trigger a link to the pthread library. It also
activate specific compilation flags that matter for threaded
applications, like -D_REENTRANT and -DTHREAD_SAFE.
--
Yoann Vandoorselaere <address@hidden>
Re: support for multithread-safe libraries, Oskar Liljeblad, 2005/07/15
Re: support for multithread-safe libraries, Albert Chin, 2005/07/19
Re: support for multithread-safe libraries, Albert Chin, 2005/07/19