From 47bf17a0cc4955768fdbcb63a0c018f628e0b33b Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 30 Mar 2021 11:20:01 -0500 Subject: [PATCH] os: Improve comment and prototype for os_nanosleep --- src/xrt/auxiliary/os/os_time.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/xrt/auxiliary/os/os_time.h b/src/xrt/auxiliary/os/os_time.h index bde4d8927..a2e739b6a 100644 --- a/src/xrt/auxiliary/os/os_time.h +++ b/src/xrt/auxiliary/os/os_time.h @@ -60,13 +60,16 @@ extern "C" { * interoperation with platform APIs. */ - /*! * @brief Sleep the given number of nanoseconds. + * + * Note that on some platforms, this may be somewhat less accurate than you might want. + * On all platforms, the system scheduler has the final say. + * * @ingroup aux_os_time */ static inline void -os_nanosleep(long nsec) +os_nanosleep(int32_t nsec) { #if defined(XRT_OS_LINUX) struct timespec spec;