diff options
author | jkim <jkim@FreeBSD.org> | 2011-02-07 21:26:46 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-02-07 21:26:46 +0000 |
commit | 365538a229a5a42c6c4aed58dcfbc8e8228a66df (patch) | |
tree | d3de8dc8a5660a541622ab9f21ef998d3f86dfa0 /include | |
parent | d8708af48420e2edefa6527dd71ac07b1c5353eb (diff) | |
download | FreeBSD-src-365538a229a5a42c6c4aed58dcfbc8e8228a66df.zip FreeBSD-src-365538a229a5a42c6c4aed58dcfbc8e8228a66df.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread_np.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |