]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add pthread_peekjoin_np(3).
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 15 Feb 2020 23:25:39 +0000 (23:25 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 15 Feb 2020 23:25:39 +0000 (23:25 +0000)
commit132fb3dc99c39717cf379908f3ce11de2e54844c
treeef06214ae896dde7cb304e2bbcf9f683425c8145
parenta7b61c0af130fea647be9480a99b96d019a56baf
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
include/pthread_np.h
lib/libthr/pthread.map
lib/libthr/thread/thr_join.c
share/man/man3/Makefile
share/man/man3/pthread_join.3