aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-02-15 23:25:39 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-02-15 23:25:39 +0000
commit132fb3dc99c39717cf379908f3ce11de2e54844c (patch)
treeef06214ae896dde7cb304e2bbcf9f683425c8145 /include
parenta7b61c0af130fea647be9480a99b96d019a56baf (diff)
downloadsrc-132fb3dc99c39717cf379908f3ce11de2e54844c.tar.gz
src-132fb3dc99c39717cf379908f3ce11de2e54844c.zip
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
Notes
Notes: svn path=/head/; revision=357985
Diffstat (limited to 'include')
-rw-r--r--include/pthread_np.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pthread_np.h b/include/pthread_np.h
index 8e50e65bdc7e..f93a023f0fce 100644
--- a/include/pthread_np.h
+++ b/include/pthread_np.h
@@ -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);