This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Add pthread_getname_np, pthread_setname_np
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 24 Feb 2012 05:00:41 -0600
- Subject: Re: [PATCH] Add pthread_getname_np, pthread_setname_np
- Authentication-results: mr.google.com; spf=pass (google.com: domain of yselkowitz@gmail.com designates 10.50.194.233 as permitted sender) smtp.mail=yselkowitz@gmail.com; dkim=pass header.i=yselkowitz@gmail.com
- References: <1330054695.6828.15.camel@YAAKOV04> <20120224093809.GA20683@calimero.vinschen.de>
On Fri, 2012-02-24 at 10:38 +0100, Corinna Vinschen wrote:
> On Feb 23 21:38, Yaakov (Cygwin/X) wrote:
> > This patchset adds pthread_getname_np and pthread_setname_np. These
> > were added to glibc in 2.12[1] and are also present in some form on
> > NetBSD and several UNIXes. IIUC recent versions of GDB can benefit from
> > this support.
>
> Thanks for your patch, but I don't think it's the whole thing.
>
> Consider, if you implement pthread_[gs]etname_np as you did, then you
> have pthread names which are only available to the process in which
> the threads are running.
My implementation is based on NetBSD's[1]. So what purpose do these
functions serve then on that it and the UNIXes? (Serious question.)
Yaakov
[1] http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libpthread/pthread.c?rev=1.125