OSDN Git Service

* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2003 02:34:14 +0000 (02:34 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2003 02:34:14 +0000 (02:34 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66856 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 10ad1d6..ba3e3ee 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 d297fc2..d4d03b3 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;
 }