pthread: Add pthread_getthreadid_np() function, bump __DragonFly_version.
commitc0f25c26521a4a85f70aa95a94bbc323503ea2ac
authorImre Vadász <imre@vdsz.com>
Sat, 15 Jul 2017 09:13:36 +0000 (15 11:13 +0200)
committerImre Vadász <imre@vdsz.com>
Sat, 15 Jul 2017 20:58:36 +0000 (15 22:58 +0200)
tree0d9b09993b739609a0045f119eeb959c93e3777f
parentfdd5cc47e6e2ce5f0883a125d11800dcff1095d3
pthread: Add pthread_getthreadid_np() function, bump __DragonFly_version.

Using pthread_getthreadid_np() can directly use the thread-ID value that is
already cached in the pthread_t struct.

Partly Taken-From: FreeBSD
14 files changed:
include/pthread_np.h
lib/libc/gen/Symbol.map
lib/libc/gen/_pthread_stubs.c
lib/libc/include/namespace.h
lib/libc/include/un-namespace.h
lib/libc_r/uthread/Makefile.inc
lib/libc_r/uthread/uthread_getthreadid_np.c [new file with mode: 0644]
lib/libpthread/Makefile
lib/libpthread/pthread_getthreadid_np.3 [new file with mode: 0644]
lib/libthread_xu/pthread.map
lib/libthread_xu/thread/Makefile.inc
lib/libthread_xu/thread/thr_getthreadid_np.c [new file with mode: 0644]
lib/libthread_xu/thread/thr_init.c
sys/sys/param.h