Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb.threads/sigthread.c
@ 2008-02-18 14:19 Mark Kettenis
  2008-02-19 18:03 ` gdb.threads/sigthread.c Jim Blandy
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2008-02-18 14:19 UTC (permalink / raw)
  To: jimb; +Cc: gdb

Hi Jim,

You recently changed gdb.threads/sigthread.c to use barriers.
Unfortunately the pthread_barrier_xxx() interfaces are not found in
the standard POSIX threads standard, but part of the Advanced Realtime
Threads POSIX extension.  Therefore they are not widely available.

Could you change the test to use a more standard synchronisation
mechanism?  I guess having a global variable of type volatile
sig_atomic_t, setting it to a non-zero value in main() (after the
threads have been created) and checking the value in child_two() and
thread_function() (perhaps calling sched_yield() if the variables
isn't set yet) would do the trick.

I can roll you a diff to do this if you want, but I don't think I have
access to a system that shows the problem you tried to fix.

Thanks,

Mark






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-19 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-18 14:19 gdb.threads/sigthread.c Mark Kettenis
2008-02-19 18:03 ` gdb.threads/sigthread.c Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox