diff options
author | Loren J. Rittle <ljrittle@acm.org> | 2003-05-16 02:34:14 +0000 |
---|---|---|
committer | Loren J. Rittle <ljrittle@gcc.gnu.org> | 2003-05-16 02:34:14 +0000 |
commit | 07d751829ec2ccde70740f4a3dbecc56f250d0dd (patch) | |
tree | 10dcb26d8aae6fc88e43bbe81e2eaecb77265dff | |
parent | ad14dc5c45ce3752ec2a7deb19f57fb2ed14c609 (diff) | |
download | gcc-07d751829ec2ccde70740f4a3dbecc56f250d0dd.zip gcc-07d751829ec2ccde70740f4a3dbecc56f250d0dd.tar.gz gcc-07d751829ec2ccde70740f4a3dbecc56f250d0dd.tar.bz2 |
* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
From-SVN: r66856
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread4.cc | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 10ad1d6..ba3e3ee 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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> diff --git a/libstdc++-v3/testsuite/thread/pthread4.cc b/libstdc++-v3/testsuite/thread/pthread4.cc index d297fc2..d4d03b3 100644 --- a/libstdc++-v3/testsuite/thread/pthread4.cc +++ b/libstdc++-v3/testsuite/thread/pthread4.cc @@ -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; } |