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