]> gcc.gnu.org Git - gcc.git/commitdiff
iostream.cc (ends): Release the acquired lock.
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Oct 2000 16:52:12 +0000 (18:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 18 Oct 2000 16:52:12 +0000 (18:52 +0200)
* iostream.cc (ends): Release the acquired lock.
(endl): Likewise.

From-SVN: r36937

libio/ChangeLog
libio/iostream.cc

index 55f6ec83736a5250e03207cc343adb0b06b4ed4a..5c9836ee7b02d2549b32c008ce78c528e1f4081f 100644 (file)
@@ -1,3 +1,8 @@
+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]:
index 1f294313c373b74cd933aca5a4c87ccaa2cfba3c..ae1db1afd9c9f8583f63d8cf9e440c95eef19b2d 100644 (file)
@@ -965,15 +965,25 @@ int istream::_skip_ws()
 
 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.osfx();
+       _IO_cleanup_region_end (0);
+    }
     return 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'));
+       outs.osfx();
+       _IO_cleanup_region_end (0);
+    }
     return outs;
 }
 
This page took 0.076091 seconds and 5 git commands to generate.