* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
From-SVN: r66856
This commit is contained in:
parent
ad14dc5c45
commit
07d751829e
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue