os_sanity_task_init

int os_sanity_task_init(int num_secs);

Initialize the os sanity task. num_secs is the number of seconds to wait in between runs of the sanity task.

ArgumentsDescription
num_secsNumber of seconds to wait in between running sanity checks.

OS_OK: Sanity task was successfully created.

All other error codes indicate an error.

/* Run sanity checks every 50 seconds */

#define SANITY_TASK_INTERVAL (50)
    int rc;

    rc = os_sanity_task_init(SANITY_TASK_INTERVAL); 
    assert(rc == OS_OK);