◆ os_precise_sleeper_deinit()
De-initialize members of os_precise_sleeper, and free resources, without actually freeing the given pointer.
◆ os_precise_sleeper_init()
◆ os_precise_sleeper_nanosleep()
static void os_precise_sleeper_nanosleep |
( |
struct os_precise_sleeper * |
ops, |
|
|
int32_t |
nsec |
|
) |
| |
|
inlinestatic |
Sleep the given number of nanoseconds, trying harder to be precise.
On some platforms, there is no way to improve sleep precision easily with some OS-specific state, so we forward to os_nanosleep().
Note that on all platforms, the system scheduler has the final say.
References os_nanosleep().
Referenced by u_wait_until().
The documentation for this struct was generated from the following file: