Add pthread_peekjoin_np(3).
The function allows to peek at the thread exit status and even see return value, without joining (and thus finally destroying) the target thread. Reviewed by: markj Sponsored by: The FreeBSD Foundation (kib) MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D23676
This commit is contained in:
@@ -63,6 +63,7 @@ int pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
|
||||
int pthread_mutex_isowned_np(pthread_mutex_t *mutex);
|
||||
void pthread_resume_all_np(void);
|
||||
int pthread_resume_np(pthread_t);
|
||||
int pthread_peekjoin_np(pthread_t, void **);
|
||||
void pthread_set_name_np(pthread_t, const char *);
|
||||
int pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *);
|
||||
int pthread_single_np(void);
|
||||
|
||||
Reference in New Issue
Block a user