* iostream.cc (ends): Release the acquired lock.
(endl): Likewise.
From-SVN: r36937
+2000-10-18 Jakub Jelinek <jakub@redhat.com>
+
+ * iostream.cc (ends): Release the acquired lock.
+ (endl): Likewise.
+
2000-10-16 Jakub Jelinek <jakub@redhat.com>
* iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 2]:
2000-10-16 Jakub Jelinek <jakub@redhat.com>
* iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 2]:
ostream& ends(ostream& outs)
{
ostream& ends(ostream& outs)
{
+ if (outs.opfx()) {
+ _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile,
+ outs._strbuf);
+ outs.osfx();
+ _IO_cleanup_region_end (0);
+ }
return outs;
}
ostream& endl(ostream& outs)
{
return outs;
}
ostream& endl(ostream& outs)
{
+ if (outs.opfx()) {
+ _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile,
+ outs._strbuf);
+ outs.osfx();
+ _IO_cleanup_region_end (0);
+ }