This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3]libstdc++/13631
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: François Dumont <francois dot cppdevs at free dot fr>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, libstdc++ at gcc dot gnu dot org
- Date: Tue, 14 Dec 2010 21:15:54 +0000
- Subject: Re: [v3]libstdc++/13631
- References: <4D069122.8040305@free.fr> <4D069A13.1000607@oracle.com> <4D07DD1E.10901@free.fr>
On 14 December 2010 21:09, François Dumont wrote:
>
> I though __mutex was a compiler intrinsic but it is not or I need to add
> some compilation option to make it available. I already try to add
> -std=gnu++0x with no success. What is needed to use __mutex ?
It's not an intrinsic, it's a normal class defined in
<ext/concurrence.h>. You'll also need to compile with -pthread or the
platform-specific equivalent, or __mutex operations will be no-ops.