Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/compat/opensolaris/sys/kcondvar.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | #define zfs_cv_init(cv, name, type, arg) do { \ | ||||
cv_init((cv), _name); \ | cv_init((cv), _name); \ | ||||
} while (0) | } while (0) | ||||
#define cv_init(cv, name, type, arg) zfs_cv_init(cv, name, type, arg) | #define cv_init(cv, name, type, arg) zfs_cv_init(cv, name, type, arg) | ||||
static clock_t | static clock_t | ||||
cv_timedwait_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim, hrtime_t res, | cv_timedwait_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim, hrtime_t res, | ||||
int flag) | int flag) | ||||
{ | { | ||||
sbintime_t sbt; | |||||
sbintime_t pr; | |||||
sbt = tim * SBT_1NS; | return (cv_timedwait_sbt(cvp, mp, nstosbt(tim), nstosbt(res), 0)); | ||||
pr = res * SBT_1NS; | |||||
return (cv_timedwait_sbt(cvp, mp, sbt, pr, 0)); | |||||
} | } | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _OPENSOLARIS_SYS_CONDVAR_H_ */ | #endif /* _OPENSOLARIS_SYS_CONDVAR_H_ */ |