This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] testsuite: Fix a race by me - watchthreads-reorder.exp
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 20 Jan 2010 14:01:22 -0700
- Subject: Re: [patch] testsuite: Fix a race by me - watchthreads-reorder.exp
- References: <20091217195026.GA21468@host0.dyn.jankratochvil.net> <m34onpgxcj.fsf@fleche.redhat.com> <20100119221228.GA30074@host0.dyn.jankratochvil.net>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "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