mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 18:37:34 +00:00
Added two macros for SPATZ init and notify
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user