Updated: October 28, 2024 |
Name a thread
#include <pthread.h> int pthread_setname_np(pthread_t tid, const char* newname);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
(QNX Neutrino Core OS 6.3.2 or later) The pthread_setname_np() function sets the name of the specified thread to newname. If newname is NULL, the function deletes any name already assigned to the thread. The np in the function's name stands for non-POSIX.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |