mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-02 03:59:36 +08:00
* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
From-SVN: r66856
This commit is contained in:
parent
ad14dc5c45
commit
07d751829e
@ -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…
Reference in New Issue
Block a user