mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 15:16:13 +00:00
os: Improve comment and prototype for os_nanosleep
This commit is contained in:
parent
0717975853
commit
47bf17a0cc
|
@ -60,13 +60,16 @@ extern "C" {
|
||||||
* interoperation with platform APIs.
|
* interoperation with platform APIs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Sleep the given number of nanoseconds.
|
* @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
|
* @ingroup aux_os_time
|
||||||
*/
|
*/
|
||||||
static inline void
|
static inline void
|
||||||
os_nanosleep(long nsec)
|
os_nanosleep(int32_t nsec)
|
||||||
{
|
{
|
||||||
#if defined(XRT_OS_LINUX)
|
#if defined(XRT_OS_LINUX)
|
||||||
struct timespec spec;
|
struct timespec spec;
|
||||||
|
|
Loading…
Reference in a new issue