* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
authorLoren J. Rittle <ljrittle@acm.org>
Fri, 16 May 2003 02:34:14 +0000 (02:34 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Fri, 16 May 2003 02:34:14 +0000 (02:34 +0000)
From-SVN: r66856

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/thread/pthread4.cc

index 10ad1d6e0122ee457d94212a1beeb8aa397cf483..ba3e3eeb6359b5ece2c7a741bcb0696f23fb193c 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
+
+       * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
+
 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>
 
index d297fc28e67e46f0e14b64897527c9999e53d3e6..d4d03b3867c1de59d16564e5b3d848ca3794ea9d 100644 (file)
@@ -61,6 +61,11 @@ produce (void*)
       pthread_mutex_unlock (&fooLock);
     }
 
+  // No more data will ever be written, ensure no fini race
+  pthread_mutex_lock (&fooLock);
+  pthread_cond_signal (&fooCondUnderflow);
+  pthread_mutex_unlock (&fooLock);
+
   return 0;
 }