Added two macros for SPATZ init and notify

This commit is contained in:
dario
2024-08-19 22:21:48 +02:00
parent 1ad0d0120a
commit ac5e7ce64f

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