mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 09:37:34 +00:00
Added working blocking-wrapper
This commit is contained in:
@@ -12,4 +12,4 @@
|
||||
// Per default, we assume state 0 to be the initial state.
|
||||
#define STA_TACOS_INITIAL_STATE 0
|
||||
|
||||
#endif // STA_TACOS_CONFIGS_DEFAULT_HPP
|
||||
#endif // STA_TACOS_CONFIGS_DEFAULT_HPP
|
||||
|
@@ -127,7 +127,14 @@ namespace sta
|
||||
virtual void cleanup();
|
||||
|
||||
#ifdef STA_TACOS_WATCHDOG_ENABLED
|
||||
#define BLOCKING(stmt) waiting(); stmt heartbeat()
|
||||
/**
|
||||
* @brief This macro wraps a given statement into waiting() and heartbeat() to make the code more readable.
|
||||
*
|
||||
*/
|
||||
#define blocking(...) \
|
||||
waiting(); \
|
||||
__VA_ARGS__ \
|
||||
heartbeat(); \
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
Reference in New Issue
Block a user