os: Improve comment and prototype for os_nanosleep

This commit is contained in:
Ryan Pavlik 2021-03-30 11:20:01 -05:00
parent 0717975853
commit 47bf17a0cc

View file

@ -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;