From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9146 invoked by alias); 13 May 2004 14:33:53 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 9139 invoked from network); 13 May 2004 14:33:52 -0000 Received: from unknown (HELO web21204.mail.yahoo.com) (216.136.131.77) by sourceware.org with SMTP; 13 May 2004 14:33:52 -0000 Message-ID: <20040513143349.5380.qmail@web21204.mail.yahoo.com> Received: from [68.19.80.70] by web21204.mail.yahoo.com via HTTP; Thu, 13 May 2004 07:33:49 PDT Date: Thu, 13 May 2004 21:02:00 -0000 From: Dan Jakubiec To: Tim Sohacki , 'Andrew Lunn' , 'Tony Butt' Cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <006801c438f3$a1f8ebf0$490810ac@telesyn.corp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: RE: [ECOS] Posix Thread name X-SW-Source: 2004-05/txt/msg00172.txt.bz2 I also ran into a similar problem a while ago. I never found any POSIX-defined way of assigned thread names, so I just implemented my own private functions to do so. But I agree that these sorts of non-standard POSIX enhancements probably don't belong in the public repository. A bit of a bummer, but what I don't think there is much that can be done about it. -- Dan Jakubiec Systech Corp --- Tim Sohacki wrote: > fyi, Wade Jensen previously solved this with the patch at: > http://sources.redhat.com/ml/ecos-discuss/2002-06/msg00104.html > > Cheers, > Tim. > > > > -----Original Message----- > From: ecos-discuss-owner@ecos.sourceware.org > [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Andrew Lunn > Sent: Thursday, May 13, 2004 10:01 AM > To: Tony Butt > Cc: ecos-discuss@ecos.sourceware.org > Subject: Re: [ECOS] Posix Thread name > > > On Tue, May 04, 2004 at 01:09:57PM +1000, Tony Butt wrote: > > I had a requirement to be able to explicitly set the name of a posix > > thread, made some simple changes to posix/current/src/pthread.cxx and > > posix/current/include/types.h, and can now optionally set the name of > > a posix thread created using pthread_create. > > > > The name is set by assigning a value to pthread_attr.name before > > calling pthread_create(). > > As far as i can see, there is nothing in the POSIX pthread standard like > this. > > Even if there was, i doubt it would be done by directly modifying the > pthread_attr structure. I would expect the POSIX people to add two new > functions, pthread_attr_setname() and pthread_attr_getname(). > > I think adding arbitry extensions like this to a standardized API is a > bad idea. So im tempted to not accept this contribution. Feel free to > try to change my mind. > > Andrew > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > __________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss