Boost logo

Boost :

Subject: Re: [boost] Adding an option to set the name of a boost::thread
From: David Hagood (david.hagood_at_[hidden])
Date: 2012-11-07 07:53:49


On 11/07/2012 05:35 AM, Vicente Botet wrote:
> niXman wrote
>> Hi,
>>
>> In glibc since 2.12 available new pthread interfaces:
>> 1. pthread_setname_np
>> 2. pthread_getname_np
>
> Thanks for pointing this. On MacOs these functions can not be used to name a
> specific thread but the current thread, so my preceding remark seems still
> valid.
>
You could always have the thread set up code handle setting the name in
the thread's context before transferring control over to the user
supplied function.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk