Re: [ovs-dev] [threads 23/28] util: Make subprogram_name thread-specific.

2013-07-12 Thread Ben Pfaff
On Thu, Jul 11, 2013 at 05:16:33PM -0700, Ben Pfaff wrote: > On Thu, Jul 11, 2013 at 09:40:57AM -0400, Ed Maste wrote: > > On 10 July 2013 19:04, Ben Pfaff wrote: > > > Signed-off-by: Ben Pfaff > > > > > +void > > > +set_subprogram_name(const char *name) > > > +{ > > > +free(subprogram_name_

Re: [ovs-dev] [threads 23/28] util: Make subprogram_name thread-specific.

2013-07-11 Thread Ben Pfaff
On Thu, Jul 11, 2013 at 09:40:57AM -0400, Ed Maste wrote: > On 10 July 2013 19:04, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > > +void > > +set_subprogram_name(const char *name) > > +{ > > +free(subprogram_name_set(xstrdup(name))); > > +} > > How about calling (through appropriate abs

Re: [ovs-dev] [threads 23/28] util: Make subprogram_name thread-specific.

2013-07-11 Thread Ed Maste
On 10 July 2013 19:04, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > +void > +set_subprogram_name(const char *name) > +{ > +free(subprogram_name_set(xstrdup(name))); > +} How about calling (through appropriate abstraction) pthread_setname_np (Linux) or pthread_set_name_np (FreeBSD)? The th