Utility implementation of backoff logic, used for attempting retries of failed processes. More...
Functions | |
RetryUtilsStatus_t | RetryUtils_BackoffAndSleep (RetryUtilsParams_t *pRetryParams) |
Simple platform specific exponential backoff function. The application must use this function between retry failures to add exponential delay. This function will block the calling task for the current timeout value. More... | |
void | RetryUtils_ParamsReset (RetryUtilsParams_t *pRetryParams) |
Resets the retry timeout value and number of attempts. This function must be called by the application before a new retry attempt. More... | |
Utility implementation of backoff logic, used for attempting retries of failed processes.
RetryUtilsStatus_t RetryUtils_BackoffAndSleep | ( | RetryUtilsParams_t * | pRetryParams | ) |
Simple platform specific exponential backoff function. The application must use this function between retry failures to add exponential delay. This function will block the calling task for the current timeout value.
[in,out] | pRetryParams | Structure containing retry parameters. |
void RetryUtils_ParamsReset | ( | RetryUtilsParams_t * | pRetryParams | ) |
Resets the retry timeout value and number of attempts. This function must be called by the application before a new retry attempt.
[in,out] | pRetryParams | Structure containing attempts done and timeout value. |