libstdc++/10193: Regression: iostreams no longer threadsa fe

Futia, Anthony J anthony.j.futia@lmco.com
Mon Apr 21 23:13:00 GMT 2003


Could this be a link problem? Need to add the -pthread(s) flag
>  -----Original Message-----
> From: 	Futia, Anthony J  
> Sent:	Monday, April 21, 2003 7:01 PM
> To:	'peturr02@ru.is, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
> gcc-prs@gcc.gnu.org'
> Subject:	Re: libstdc++/10193: Regression: iostreams no longer
> threadsafe
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc
> &pr=10193
> 
> If I read response to this problem correctly,  the application is
> responsible for locking all constructors and method calls of the
> ostringstream class in its threaded application by some global mutex, even
> if the objects are not shared in anyway.
> 
> 
> However the sample application has no shared data except that which is
> underlying in the ostringstream class (assumption). If the assumption is
> true then why isn't the ostringstream class responsible for protecting its
> shared data.
> 
> 
> I am experiencing the same problem with the gcc implementation of the
> ostringstream class using only the ostringsteam constructor. Since I am
> using shared libraries, it is impossible for me to serialize all of the
> ostringstream methods and constructors.
> 
> 
> 
> 



More information about the Gcc-bugs mailing list