add pthread_setname_np

the thread name is displayed by gdb's "info threads".
This commit is contained in:
Felix Janda
2016-09-16 20:54:00 -04:00
committed by Rich Felker
parent 3ca2d2d4ae
commit 8fb28b0b3e
2 changed files with 27 additions and 0 deletions

View File

@ -214,6 +214,7 @@ struct cpu_set_t;
int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
int pthread_getattr_np(pthread_t, pthread_attr_t *);
int pthread_setname_np(pthread_t, const char *);
int pthread_tryjoin_np(pthread_t, void **);
int pthread_timedjoin_np(pthread_t, void **, const struct timespec *);
#endif