mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 11:07:34 +00:00
Fully changed timer to fully use std::function<>
This commit is contained in:
@@ -28,7 +28,7 @@ namespace sta
|
||||
* @param callback The callback function to call upon timer timeout.
|
||||
* @param arg The argument to pass to the callback function.
|
||||
*/
|
||||
RtosTimer(void (*callback)(void *arg), void *arg);
|
||||
RtosTimer(std::function<void(void*)>, void *arg);
|
||||
|
||||
/**
|
||||
* @brief Initializes the timer with a callback that has no effect.
|
||||
@@ -43,7 +43,7 @@ namespace sta
|
||||
* @param callback The callback function to call upon timer timeout.
|
||||
* @param arg The argument to pass to the callback function.
|
||||
*/
|
||||
void setCallback(void (*callback)(void *arg), void *arg);
|
||||
void setCallback(std::function<void(void*)> callback, void *arg);
|
||||
|
||||
/**
|
||||
* @brief Run the timer for a given number of milliseconds.
|
||||
|
Reference in New Issue
Block a user