Commit 9dccaa6b by Petur Runolfsson Committed by Andreas Tobler

locale.cc (locale::_S_initialize): Workaround a confusion of the use of the gthr API when...

2003-10-14  Petur Runolfsson  <peturr02@ru.is>
	    Andreas Tobler  <a.tobler@schweiz.ch>

	* src/locale.cc (locale::_S_initialize): Workaround a confusion
	of the use of the gthr API when __gthread_active_p() returns true.

Co-Authored-By: Andreas Tobler <a.tobler@schweiz.ch>

From-SVN: r72458
parent caa55b1e
2003-10-14 Petur Runolfsson <peturr02@ru.is>
Andreas Tobler <a.tobler@schweiz.ch>
* src/locale.cc (locale::_S_initialize): Workaround a confusion
of the use of the gthr API when __gthread_active_p() returns true.
2003-10-12 Petur Runolfsson <peturr02@ru.is> 2003-10-12 Petur Runolfsson <peturr02@ru.is>
Paolo Carlini <pcarlini@unitus.it> Paolo Carlini <pcarlini@unitus.it>
......
...@@ -395,12 +395,9 @@ namespace std ...@@ -395,12 +395,9 @@ namespace std
#ifdef __GTHREADS #ifdef __GTHREADS
if (__gthread_active_p()) if (__gthread_active_p())
__gthread_once(&_S_once, _S_initialize_once); __gthread_once(&_S_once, _S_initialize_once);
else
#endif #endif
{ if (!_S_classic)
if (!_S_classic) _S_initialize_once();
_S_initialize_once();
}
} }
void void
......
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