Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Functions
Burger::Switch Namespace Reference

Functions

eError BURGER_API nanosleep_delay (timespec *pInput, uint_t bAlertable=FALSE) BURGER_NOEXCEPT
 Sleep for a specific duration with nanosleep()
 

Function Documentation

◆ nanosleep_delay()

Burger::eError BURGER_API Burger::Switch::nanosleep_delay ( timespec * pInput,
uint_t bAlertable = FALSE )
extern

Sleep for a specific duration with nanosleep()


nanosleep() can be interrupted and the delay aborted. If this is not desired, then leave the parameter bAlertable set to FALSE. If bAlertable is set to TRUE, then interrupt aborts is allowed.

Parameters
pInputPointer to an initialized timespec with the desired delay.
bAlertableTRUE if interruption is allowed
Returns
kErrorNone on no error, kErrorCancelled if cancelled