Open slact opened 5 years ago
Is pthread_setname_np
available on all cqueues supported platforms? (an _np
suffix usually means "non-posix", which means that the function is not well supported)
Some quick googling suggests:
#include <pthread_np.h>
?Oh, you're right, that's quite a mess. I've added checks to explicitly support the relevant functions on Linux, the BSDs and OS X.
Adds wrappers for
pthread_setname_np
andpthread_getname_np
to the thread metatable. It's quite useful to be able to name long-running threads!