ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563.

2003-02-13  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/ostream.tcc (sentry::sentry): Improve
	performance-wise the fix for libstdc++/9563.

From-SVN: r62855
This commit is contained in:
Paolo Carlini 2003-02-13 18:43:58 +01:00 committed by Paolo Carlini
parent 047d636f54
commit b7bb6d4a6a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-02-13 Paolo Carlini <pcarlini@unitus.it>
* include/bits/ostream.tcc (sentry::sentry): Improve
performance-wise the fix for libstdc++/9563.
2003-02-12 Phil Edwards <pme@gcc.gnu.org>
* config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.

View File

@ -44,7 +44,7 @@ namespace std
: _M_os(__os)
{
// XXX MT
if (__os.good() && __os.tie())
if (__os.tie() && __os.good())
__os.tie()->flush();
if (__os.good())