[Bug libstdc++/40088] Creating a std::ostringstream object locks a global mutex

2009-05-22 Thread veloso at verylowsodium dot com


--- Comment #9 from veloso at verylowsodium dot com  2009-05-22 21:03 
---
(In reply to comment #4)
> Hm.  I wonder how the "global" locale is supposed to interact with multiple
> threads anyway (in the face of C++ not knowing about threads).  Would it be
> a conforming implementation to put the global locale into thread-local storage
> (thus, having a "global" locale for each thread)?

Pre C++0x, the standard says nothing about threads at all.

The C++0x draft has this to say:
Whether there is one global locale object for the entire program or one global
locale object per thread is implementation defined. Implementations are
encouraged but not required to provide one global locale object per thread. If
there is a single global locale object for the entire program, implementations
are not required to avoid data races on it


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40088



[Bug libstdc++/43451] New: [C++0x] atomic integral methods missing volatile overloads

2010-03-19 Thread veloso at verylowsodium dot com
Since the resolution of LWG 1147, most of the methods on the atomic integral
types should have two overloads, a volatile and a non-volatile version. 
However, it appears that since r155377, the volatile overloads are missing from
the atomic integral types altogether.


-- 
   Summary: [C++0x] atomic integral methods missing volatile
overloads
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: veloso at verylowsodium dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43451