public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/12855] New: Thread safety problems in ios_base::Init
@ 2003-10-31  9:43 peturr02 at ru dot is
  2003-10-31  9:54 ` [Bug libstdc++/12855] " peturr02 at ru dot is
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: peturr02 at ru dot is @ 2003-10-31  9:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12855

           Summary: Thread safety problems in ios_base::Init
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peturr02 at ru dot is
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

ios_base::Init::Init()
  {
    if (_S_ios_base_init == 0)
      {

        _S_ios_base_init = 1;
      }
    ++_S_ios_base_init;
  }

 ios_base::Init::~Init()
  {
    if (--_S_ios_base_init == 1)
      {
        // Catch any exceptions thrown by basic_ostream::flush()
        try
          { 
            // Flush standard output streams as required by 27.4.2.1.6
            cout.flush();
            cerr.flush();
            clog.flush();
    
#ifdef _GLIBCXX_USE_WCHAR_T
            wcout.flush();
            wcerr.flush();
            wclog.flush();    
#endif
          }
        catch (...)
          { }
      }
  }


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-12-23 19:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-31  9:43 [Bug libstdc++/12855] New: Thread safety problems in ios_base::Init peturr02 at ru dot is
2003-10-31  9:54 ` [Bug libstdc++/12855] " peturr02 at ru dot is
2003-11-03 23:52 ` rittle at latour dot rsch dot comm dot mot dot com
2003-11-04  4:43 ` pinskia at gcc dot gnu dot org
2003-11-04  9:17 ` peturr02 at ru dot is
2003-11-11  8:17 ` rittle at latour dot rsch dot comm dot mot dot com
2003-12-10  0:18 ` bkoz at gcc dot gnu dot org
2003-12-11  8:18 ` peturr02 at ru dot is
2003-12-13  6:42 ` bkoz at gcc dot gnu dot org
2003-12-14  3:45 ` carlo at gcc dot gnu dot org
2003-12-15 18:05 ` bkoz at gcc dot gnu dot org
2003-12-15 19:49   ` Carlo Wood
2003-12-15 19:03 ` cvs-commit at gcc dot gnu dot org
2003-12-15 19:49 ` carlo at alinoe dot com
2003-12-15 20:07 ` bkoz at gcc dot gnu dot org
2003-12-16 18:02 ` bkoz at gcc dot gnu dot org
2003-12-17  4:46 ` carlo at alinoe dot com
2003-12-23 20:54 ` bkoz at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).