]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add pthread_get_name_np(3).
authorkib <kib@FreeBSD.org>
Fri, 17 Aug 2018 18:34:07 +0000 (18:34 +0000)
committerkib <kib@FreeBSD.org>
Fri, 17 Aug 2018 18:34:07 +0000 (18:34 +0000)
commit73f3efa46c505378fbfee43562c8842a8fceabeb
treeb86f0fb8f2543643954985070712dac20c322af4
parentbfd3c06cd1d3ebebb2d7d5a96f8dba370e32ae8a
Add pthread_get_name_np(3).

The function retrieves the thread name previously set by
pthread_set_name_np(3). The name is cached in the process memory.

Requested by: Willem Jan Withagen <wjw@digiware.nl>
Man page update: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: ian (previous version)
Discussed with: arichardson, bjk (man page)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D16702
include/pthread_np.h
lib/libc/include/namespace.h
lib/libc/include/un-namespace.h
lib/libthr/pthread.map
lib/libthr/thread/thr_exit.c
lib/libthr/thread/thr_info.c
lib/libthr/thread/thr_private.h
share/man/man3/Makefile
share/man/man3/pthread_set_name_np.3