gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 20 Jan 2010 21:09:30 +0000 (21:09 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 20 Jan 2010 21:09:30 +0000 (21:09 +0000)
commit23787403e03ea97653aeafcd6ae898b21991de3b
treef4f8e267c9e95c1e0c0ad2a5a9714318c880518c
parentec8ebe726b1f2d43d19256f8d8b33a6dca71537a
gdb/testsuite/
* gdb.threads/watchthreads-reorder.c (gdbstop_mutex): Remove.
(thread1_func): Protect thread1_tid with thread1_tid_cond by
thread1_tid_mutex.  Remove gdbstop_mutex handling.
(thread2_func): Protect thread2_tid with thread2_tid_cond by
thread2_tid_mutex.  Remove gdbstop_mutex handling.
(main): Move thread1_tid_mutex and thread2_tid_mutex locks before
pthread_create.  Remove gdbstop_mutex handling.  New comment.  Replace
pthread_cond_wait conditionalizations by while loops.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/watchthreads-reorder.c