From 6d6840a97432739a74fb89e5e35de0f0e66f1160 Mon Sep 17 00:00:00 2001 From: dario Date: Mon, 19 Aug 2024 22:21:48 +0200 Subject: [PATCH] Added two macros for SPATZ init and notify --- include/sta/debug/spatz.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/sta/debug/spatz.hpp b/include/sta/debug/spatz.hpp index 2411b69..0dce873 100644 --- a/include/sta/debug/spatz.hpp +++ b/include/sta/debug/spatz.hpp @@ -55,6 +55,10 @@ namespace sta } // namespace spatz } // namespace sta +#define STA_SPATZ_NOTIFY(id) sta::spatz::notify(id) + +#define STA_SPATZ_INIT(mutex, signal) sta::spatz::init(mutex, signal) + #else namespace sta @@ -65,6 +69,10 @@ namespace sta } // namespace spatz } // namespace sta +#define STA_SPATZ_NOTIFY(id) ((void)0) + +#define STA_SPATZ_INIT(mutex, signal) ((void)0) + #endif // STA_SPATZ_ENABLED #endif // STA_CORE_SPATZ_HPP