* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.

From-SVN: r66856
This commit is contained in:
Loren J. Rittle 2003-05-16 02:34:14 +00:00 committed by Loren J. Rittle
parent ad14dc5c45
commit 07d751829e
2 changed files with 9 additions and 0 deletions

View 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>

View 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;
}