Added two macros for SPATZ init and notify

This commit is contained in:
dario 2024-08-19 22:21:48 +02:00
parent f57212bf6d
commit 6d6840a974

View File

@ -55,6 +55,10 @@ namespace sta
} // namespace spatz } // namespace spatz
} // namespace sta } // namespace sta
#define STA_SPATZ_NOTIFY(id) sta::spatz::notify(id)
#define STA_SPATZ_INIT(mutex, signal) sta::spatz::init(mutex, signal)
#else #else
namespace sta namespace sta
@ -65,6 +69,10 @@ namespace sta
} // namespace spatz } // namespace spatz
} // namespace sta } // namespace sta
#define STA_SPATZ_NOTIFY(id) ((void)0)
#define STA_SPATZ_INIT(mutex, signal) ((void)0)
#endif // STA_SPATZ_ENABLED #endif // STA_SPATZ_ENABLED
#endif // STA_CORE_SPATZ_HPP #endif // STA_CORE_SPATZ_HPP