This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: is gcc 2.95.2 -pthreads recommended?
- To: Martin Sebor <sebor at roguewave dot com>
- Subject: Re: is gcc 2.95.2 -pthreads recommended?
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Tue, 20 Mar 2001 17:29:08 -0800 (PST)
- cc: gcc bug list <gcc-bugs at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org, hunt at roguewave dot com
> Is gcc -pthreads the recommended way of using libstdc++ (with 2.95.2)
> in an multi-thread safe way?
yes
>
> Also, is --enable-threads supposed to cause gcc to #define _PTHREADS
> or __STL_PTHREADS by default? We have gcc installations that appear
> to #define __STL_PTHREADS by default (on Linux?), and we have others
> (built on SunOS 5.8 with and without --enable-threads) that do not.
__STL_PTHREADS is deprecated. That was usually defined in stl_config.h
_PTHREADS is defined with -pthreads.