[patch] testsuite: Fix a race by me - watchthreads-reorder.exp

Tom Tromey tromey@redhat.com
Wed Jan 20 21:01:00 GMT 2010


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan> 	* gdb.threads/watchthreads-reorder.c (gdbstop_mutex): Remove.
Jan> 	(thread1_func): Protect thread1_tid with thread1_tid_cond by
Jan> 	thread1_tid_mutex.  Remove gdbstop_mutex handling.
Jan> 	(thread2_func): Protect thread2_tid with thread2_tid_cond by
Jan> 	thread2_tid_mutex.  Remove gdbstop_mutex handling.
Jan> 	(main): Move thread1_tid_mutex and thread2_tid_mutex locks before
Jan> 	pthread_create.  Remove gdbstop_mutex handling.  New comment.  Replace
Jan> 	pthread_cond_wait conditionalizations by while loops.

Ok.  Thanks.

Tom



More information about the Gdb-patches mailing list