diff options
author | jilles <jilles@FreeBSD.org> | 2010-05-09 14:21:34 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-05-09 14:21:34 +0000 |
commit | e54eb58dbf1fd47ade259a7636f8aa4afd4f4384 (patch) | |
tree | c90514be58798f5a80b0828929e968f04548e4e5 /share/man/man3/pthread_cond_timedwait.3 | |
parent | 5d57926a1733c2321188224e493a5368a9be145e (diff) | |
download | FreeBSD-src-e54eb58dbf1fd47ade259a7636f8aa4afd4f4384.zip FreeBSD-src-e54eb58dbf1fd47ade259a7636f8aa4afd4f4384.tar.gz |
Document clock and pshared condvar attributes.
Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken
as it simply waits for the difference of the current and given value of the
clock as if it were CLOCK_MONOTONIC. So document only CLOCK_REALTIME and
CLOCK_MONOTONIC as allowed.
MFC after: 1 week
Diffstat (limited to 'share/man/man3/pthread_cond_timedwait.3')
-rw-r--r-- | share/man/man3/pthread_cond_timedwait.3 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/share/man/man3/pthread_cond_timedwait.3 b/share/man/man3/pthread_cond_timedwait.3 index 0162569..11a3c2f 100644 --- a/share/man/man3/pthread_cond_timedwait.3 +++ b/share/man/man3/pthread_cond_timedwait.3 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 28, 1998 +.Dd May 9, 2010 .Dt PTHREAD_COND_TIMEDWAIT 3 .Os .Sh NAME @@ -56,6 +56,11 @@ time specified in .Fa abstime , and the current thread reacquires the lock on .Fa mutex . +.Pp +The clock used to measure +.Fa abstime +can be specified during creation of the condition variable using +.Xr pthread_condattr_setclock 3 . .Sh RETURN VALUES If successful, the .Fn pthread_cond_timedwait @@ -87,7 +92,8 @@ was not locked by the calling thread. .Xr pthread_cond_destroy 3 , .Xr pthread_cond_init 3 , .Xr pthread_cond_signal 3 , -.Xr pthread_cond_wait 3 +.Xr pthread_cond_wait 3 , +.Xr pthread_condattr_setclock 3 .Sh STANDARDS The .Fn pthread_cond_timedwait |