For profiling multithreaded applications, it would be very useful to me to set a name for each thread.
Initial googling turns up pthread_setname_np() (see here), but when used, it doesn't appear to show up in Instruments.
Is there a way to do this from a C application?