libstdc++/7445
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Nov 2002 14:55:32 +0000 (14:55 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Nov 2002 14:55:32 +0000 (14:55 +0000)
* src/locale.cc (std::locale::classic()): Weaken locking protocol.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59078 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/src/locale.cc

index 0565f37..f80ab5b 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-13  Loren J. Rittle  <ljrittle@acm.org>
+
+       libstdc++/7445
+       * src/locale.cc (std::locale::classic()): Weaken locking protocol.
+
 2002-11-13  Jonathan Wakely  <redi@gcc.gnu.org>
 
        * docs/html/install.html, docs/html/22_locale/locale.html: HTML fix.
index 127197d..46fab28 100644 (file)
@@ -367,9 +367,7 @@ namespace std
   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