Subject: Re: [boost] Adding an option to set the name of a boost::thread
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2012-11-07 08:27:07
> On 11/07/2012 05:35 AM, Vicente Botet wrote:
>> niXman wrote
>>> 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
> 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.
This is exactly what I meant when I said "to associate the setting of the
name attribute to the thread_attributes class so that the implementation can
set it at the start of the thread. "
So that the setting can not be of the thread class as the thread will be
-- View this message in context: http://boost.2283326.n4.nabble.com/Adding-an-option-to-set-the-name-of-a-boost-thread-tp4638283p4638316.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk