libstdc++/7445
* src/locale.cc (std::locale::classic()): Weaken locking protocol.
From-SVN: r59078
+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.
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