lkml.org 
[lkml]   [2009]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC][PATCH] Add prctl to set sibling thread names
Date
> KOSAKI Motohiro wrote:
> >> 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.
> >
> > Hm.
> > if your program really need to change another thread name, can you please tell us
> > why it is necessary and when it is used?
>
> I think John's previous mails covered that pretty well. As for doing the
> name change at create time, or sometime later, it just seems to me that
> the flexibility of doing so later is worth having. While I know we don't
> have to follow other systems implementations, in this case
> pthread_setname_np() seems a reasonable model to follow to me.

You only said your mode is more flexible. but I want to know _why_ this flexibiliby is
necessay. please tell us concrete use-case.




\
 
 \ /
  Last update: 2009-11-05 06:45    [W:0.059 / U:5.944 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site