PR libstdc++/7445
* src/locale.cc (std::locale::classic()): Weaken locking protocol.
From-SVN: r59834
+2002-12-04 Loren J. Rittle <ljrittle@acm.org>
+
+ PR libstdc++/7445
+ * src/locale.cc (std::locale::classic()): Weaken locking protocol.
+
2002-12-03 Phil Edwards <pme@gcc.gnu.org>
* include/bits/streambuf.tcc (basic_streambuf::sputbackc): Prefix
const locale&
locale::classic()
{
- static _STL_mutex_lock __lock __STL_MUTEX_INITIALIZER;
- _STL_auto_lock __auto(__lock);
-
+ // Locking protocol: singleton-called-before-threading-starts
if (!_S_classic)
{
try