Commit 07d75182 by Loren J. Rittle Committed by Loren J. Rittle

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

From-SVN: r66856
parent ad14dc5c
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment