This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3]libstdc++/13631


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]