diff options
author | mtm <mtm@FreeBSD.org> | 2003-12-30 08:44:55 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-12-30 08:44:55 +0000 |
commit | 81dc42d3d9b547927cf8cb3d68345c9c09538b65 (patch) | |
tree | c494713f2d572e1958d88dfaaa98a84ff1673426 /share/man/man3/pthread.3 | |
parent | d4f59be550779a187578dac62baf0161eb09aa64 (diff) | |
download | FreeBSD-src-81dc42d3d9b547927cf8cb3d68345c9c09538b65.zip FreeBSD-src-81dc42d3d9b547927cf8cb3d68345c9c09538b65.tar.gz |
o Implement pthread_mutex_timedlock(), which does not block indefinitely on
a mutex locked by another thread.
o document it: pthread_mutex_timedlock(3)
Diffstat (limited to 'share/man/man3/pthread.3')
-rw-r--r-- | share/man/man3/pthread.3 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/share/man/man3/pthread.3 b/share/man/man3/pthread.3 index 7a8abcf..4592983 100644 --- a/share/man/man3/pthread.3 +++ b/share/man/man3/pthread.3 @@ -274,6 +274,11 @@ Initialize a mutex with specified attributes. Lock a mutex and block until it becomes available. .It Xo .Ft int +.Fn pthread_mutex_timedlock "pthread_mutex_t *mutex" "const struct timespec *abstime" +.Xc +Lock a mutex and block until it becomes available or until the timeout expires. +.It Xo +.Ft int .Fn pthread_mutex_trylock "pthread_mutex_t *mutex" .Xc Try to lock a mutex, but don't block if the mutex is locked by another thread, |