]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add pthread_peekjoin_np(3).
authorkib <kib@FreeBSD.org>
Sat, 15 Feb 2020 23:25:39 +0000 (23:25 +0000)
committerkib <kib@FreeBSD.org>
Sat, 15 Feb 2020 23:25:39 +0000 (23:25 +0000)
commit0ee0eac9f670bcfd92e50b093f327234555befc9
treeef06214ae896dde7cb304e2bbcf9f683425c8145
parent2e901c9ea21023bd52c6fc089f41c95cdb40c0aa
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