From 365538a229a5a42c6c4aed58dcfbc8e8228a66df Mon Sep 17 00:00:00 2001 From: jkim Date: Mon, 7 Feb 2011 21:26:46 +0000 Subject: Introduce a non-portable function pthread_getthreadid_np(3) to retrieve calling thread's unique integral ID, which is similar to AIX function of the same name. Bump __FreeBSD_version to note its introduction. Reviewed by: kib --- include/pthread_np.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/pthread_np.h b/include/pthread_np.h index b969988..1a2dbe9 100644 --- a/include/pthread_np.h +++ b/include/pthread_np.h @@ -48,6 +48,7 @@ int pthread_attr_get_np(pthread_t, pthread_attr_t *); int pthread_attr_getaffinity_np(const pthread_attr_t *, size_t, cpuset_t *); int pthread_attr_setaffinity_np(pthread_attr_t *, size_t, const cpuset_t *); int pthread_getaffinity_np(pthread_t, size_t, cpuset_t *); +int pthread_getthreadid_np(void); int pthread_main_np(void); int pthread_multi_np(void); int pthread_mutexattr_getkind_np(pthread_mutexattr_t); -- cgit v1.1