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: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 20 Jan 2010 22:09:54 +0100
- 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> <m3iqawze1p.fsf@fleche.redhat.com>
On Wed, 20 Jan 2010 22:01:22 +0100, Tom Tromey wrote:
> >>>>> "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.
Checked-in:
http://sourceware.org/ml/gdb-cvs/2010-01/msg00182.html
Thanks,
Jan