
7 Nov
2012
7 Nov
'12
12:53 p.m.
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.