Commit 2b298bb7 by Loren J. Rittle Committed by Loren J. Rittle

locale.cc (std::locale::classic()): Weaken locking protocol.

	libstdc++/7445
	* src/locale.cc (std::locale::classic()): Weaken locking protocol.

From-SVN: r59078
parent 70c73a4d
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> 2002-11-13 Jonathan Wakely <redi@gcc.gnu.org>
* docs/html/install.html, docs/html/22_locale/locale.html: HTML fix. * docs/html/install.html, docs/html/22_locale/locale.html: HTML fix.
......
...@@ -367,9 +367,7 @@ namespace std ...@@ -367,9 +367,7 @@ namespace std
const locale& const locale&
locale::classic() locale::classic()
{ {
static _STL_mutex_lock __lock __STL_MUTEX_INITIALIZER; // Locking protocol: singleton-called-before-threading-starts
_STL_auto_lock __auto(__lock);
if (!_S_classic) if (!_S_classic)
{ {
try try
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment