diff options
author | mtm <mtm@FreeBSD.org> | 2003-12-30 08:34:57 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-12-30 08:34:57 +0000 |
commit | d4f59be550779a187578dac62baf0161eb09aa64 (patch) | |
tree | 674f889e544edd1af22a04a61bafcb91b56c0a42 /lib/libthr/thread/thr_kern.c | |
parent | 9a6c5010ff0ca1b670da5d6a259bf5eff83d865e (diff) | |
download | FreeBSD-src-d4f59be550779a187578dac62baf0161eb09aa64.zip FreeBSD-src-d4f59be550779a187578dac62baf0161eb09aa64.tar.gz |
Make it possible for the library to specify a timeout value when
waiting on a locked mutex. This involves passing a struct timespec
from the pthread mutex locking interfaces all the way down to the
function that suspends the thread until the mutex is released.
The timeout is assumed to be an absolute time (i.e. not relative to
the current time).
Also, in _thread_suspend() make the passed in timespec const.
Diffstat (limited to 'lib/libthr/thread/thr_kern.c')
-rw-r--r-- | lib/libthr/thread/thr_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_kern.c b/lib/libthr/thread/thr_kern.c index 516c570..3584246 100644 --- a/lib/libthr/thread/thr_kern.c +++ b/lib/libthr/thread/thr_kern.c @@ -117,7 +117,7 @@ _thread_sigunblock() } int -_thread_suspend(pthread_t pthread, struct timespec *abstime) +_thread_suspend(pthread_t pthread, const struct timespec *abstime) { struct timespec remaining; struct timespec *ts; |