mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-29 05:17:33 +00:00
Add STA_ATOMIC_ENABLE guards
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <sta/atomic/mutex.hpp>
|
||||
#ifdef STA_ATOMIC_ENABLE
|
||||
|
||||
|
||||
namespace sta
|
||||
@@ -17,3 +18,6 @@ namespace sta
|
||||
lock_.clear();
|
||||
}
|
||||
} // namespace sta
|
||||
|
||||
|
||||
#endif // STA_ATOMIC_ENABLE
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#include <sta/atomic/signal.hpp>
|
||||
#ifdef STA_ATOMIC_ENABLE
|
||||
|
||||
|
||||
namespace sta
|
||||
@@ -27,3 +28,6 @@ namespace sta
|
||||
while (!signal_.exchange(false));
|
||||
}
|
||||
} // namespace sta
|
||||
|
||||
|
||||
#endif // STA_ATOMIC_ENABLE
|
||||
|
Reference in New Issue
Block a user