aboutsummaryrefslogtreecommitdiff
path: root/include/pthread_np.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2011-02-07 21:26:46 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2011-02-07 21:26:46 +0000
commit678b238c85ec7974d1e51753776208238cadb450 (patch)
treed3de8dc8a5660a541622ab9f21ef998d3f86dfa0 /include/pthread_np.h
parent96a7586b7de3e4c6966f00cd013b078a711360a2 (diff)
downloadsrc-678b238c85ec7974d1e51753776208238cadb450.tar.gz
src-678b238c85ec7974d1e51753776208238cadb450.zip
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
Notes
Notes: svn path=/head/; revision=218414
Diffstat (limited to 'include/pthread_np.h')
-rw-r--r--include/pthread_np.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pthread_np.h b/include/pthread_np.h
index b969988c350d..1a2dbe9581fb 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);