22 #ifndef UTEST_SCHEDULER_H 23 #define UTEST_SCHEDULER_H 25 #include "hal/ticker_api.h" 107 #endif // UTEST_SCHEDULER_H
utest calls this function at the end of the Harness::run() function, after (!) the first callback has...
The scheduler interface consists out of the post and cancel functions, which you must implement to us...
Callback< R(ArgTs...)> callback(R(*func)(ArgTs...)=nullptr) noexcept
Create a callback class with type inferred from the arguments.
int32_t(* utest_v1_scheduler_cancel_callback_t)(void *handle)
utest needs to cancel callbacks with a non-zero delay some time later.
void *(* utest_v1_scheduler_post_callback_t)(const utest_v1_harness_callback_t callback, timestamp_t delay_ms)
utest calls this function when it needs to schedule a callback with a delay in milliseconds.
The utest harness manages its own state and therefore does not require the scheduler to bind any argu...
Legacy format representing a timestamp in us.
utest calls this function before running the test specification.