Commit c1b037bd by Jakub Jelinek Committed by Jakub Jelinek

iostream.cc (ends): Release the acquired lock.

	* iostream.cc (ends): Release the acquired lock.
	(endl): Likewise.

From-SVN: r36937
parent 81cf47b2
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> 2000-10-16 Jakub Jelinek <jakub@redhat.com>
* iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 2]: * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 2]:
......
...@@ -965,15 +965,25 @@ int istream::_skip_ws() ...@@ -965,15 +965,25 @@ int istream::_skip_ws()
ostream& ends(ostream& outs) ostream& ends(ostream& outs)
{ {
if (outs.opfx()) if (outs.opfx()) {
_IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile,
outs._strbuf);
outs.put('\0'); outs.put('\0');
outs.osfx();
_IO_cleanup_region_end (0);
}
return outs; return outs;
} }
ostream& endl(ostream& outs) ostream& endl(ostream& outs)
{ {
if (outs.opfx()) if (outs.opfx()) {
_IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile,
outs._strbuf);
flush(outs.put('\n')); flush(outs.put('\n'));
outs.osfx();
_IO_cleanup_region_end (0);
}
return outs; return outs;
} }
......
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