Re: [RFC][PATCH] Add prctl to set sibling thread names
From: KOSAKI Motohiro
Date: Thu Nov 05 2009 - 00:22:18 EST
> KOSAKI Motohiro wrote:
> > John, I'd prefer to suggested another design.
> > How about this?
> > 1. remove pid argument from prctl
> > 2. cancel pthread_setname_np()
> > 3. instead, create pthread_attr_setname_np()
> > 4. pthread_create() change own thread name by pthread_attr.
> > It avoid many racy problem automatically.
> Perhaps, but it also greatly reduces the flexibility of the
> implementation by restricting name changes to create time.
if your program really need to change another thread name, can you please tell us
why it is necessary and when it is used?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/