summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/man/pthreads.3
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-06-17 19:11:54 +0000
committerguenther <guenther@openbsd.org>2013-06-17 19:11:54 +0000
commit7b36c281ba1c99d528efca950572c207acd2e184 (patch)
treef5c2b481403a1c10e5fb3838834ab4fd89d0397e /lib/libpthread/man/pthreads.3
parent2nd part of: (diff)
downloadwireguard-openbsd-7b36c281ba1c99d528efca950572c207acd2e184.tar.xz
wireguard-openbsd-7b36c281ba1c99d528efca950572c207acd2e184.zip
Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,
including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and {clock,pthread}_getcpuclockid() functions. Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@ ok matthew@
Diffstat (limited to 'lib/libpthread/man/pthreads.3')
-rw-r--r--lib/libpthread/man/pthreads.37
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libpthread/man/pthreads.3 b/lib/libpthread/man/pthreads.3
index 9f76594d4ad..3843b8a1f3a 100644
--- a/lib/libpthread/man/pthreads.3
+++ b/lib/libpthread/man/pthreads.3
@@ -1,6 +1,6 @@
-.\" $OpenBSD: pthreads.3,v 1.38 2012/09/02 13:29:29 jmc Exp $
+.\" $OpenBSD: pthreads.3,v 1.39 2013/06/17 19:11:54 guenther Exp $
.\" David Leonard <d@openbsd.org>, 1998. Public domain.
-.Dd $Mdocdate: September 2 2012 $
+.Dd $Mdocdate: June 17 2013 $
.Dt PTHREADS 3
.Os
.Sh NAME
@@ -269,6 +269,8 @@ Set cancelability state.
Set cancelability state.
.It Fn pthread_sigmask
Examine/change a thread's signal mask.
+.It Fn pthread_getcpuclockid
+Get a CPU time clock for a thread.
.El
.Ss Thread stacks
Each thread has a different stack, whether it be provided by a
@@ -419,6 +421,7 @@ with larger numbers generating more verbose output.
.Xr pthread_detach 3 ,
.Xr pthread_equal 3 ,
.Xr pthread_exit 3 ,
+.Xr pthread_getcpuclockid 3,
.Xr pthread_getspecific 3 ,
.Xr pthread_join 3 ,
.Xr pthread_key_create 3 ,