diff options
author | Brian Behlendorf <[email protected]> | 2018-01-24 11:33:47 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-24 11:33:47 -0800 |
commit | 23602fdb39e1254c669707ec9d2d0e6bcdbf1771 (patch) | |
tree | c294d9b4733ee141b6457285c6184e74fa0143a5 /include | |
parent | fb79036f288ea60b59d21fe250bc17445cf69f37 (diff) |
Add cv_timedwait_io()
Add missing helper function cv_timedwait_io(), it should be used
when waiting on IO with a specified timeout.
Reviewed-by: Tim Chase <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #674
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/condvar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/condvar.h b/include/sys/condvar.h index 5479e75ad..5fcc9068a 100644 --- a/include/sys/condvar.h +++ b/include/sys/condvar.h @@ -56,6 +56,7 @@ extern void __cv_wait(kcondvar_t *, kmutex_t *); extern void __cv_wait_io(kcondvar_t *, kmutex_t *); extern void __cv_wait_sig(kcondvar_t *, kmutex_t *); extern clock_t __cv_timedwait(kcondvar_t *, kmutex_t *, clock_t); +extern clock_t __cv_timedwait_io(kcondvar_t *, kmutex_t *, clock_t); extern clock_t __cv_timedwait_sig(kcondvar_t *, kmutex_t *, clock_t); extern clock_t cv_timedwait_hires(kcondvar_t *, kmutex_t *, hrtime_t, hrtime_t res, int flag); @@ -71,6 +72,7 @@ extern void __cv_broadcast(kcondvar_t *c); #define cv_wait_sig(cvp, mp) __cv_wait_sig(cvp, mp) #define cv_wait_interruptible(cvp, mp) cv_wait_sig(cvp, mp) #define cv_timedwait(cvp, mp, t) __cv_timedwait(cvp, mp, t) +#define cv_timedwait_io(cvp, mp, t) __cv_timedwait_io(cvp, mp, t) #define cv_timedwait_sig(cvp, mp, t) __cv_timedwait_sig(cvp, mp, t) #define cv_timedwait_interruptible(cvp, mp, t) cv_timedwait_sig(cvp, mp, t) #define cv_signal(cvp) __cv_signal(cvp) |