Add STA_ATOMIC_ENABLE guards

This commit is contained in:
Henrik Stickann
2022-04-10 20:44:44 +02:00
parent 4bf8a31acf
commit 82b7e2a3df
4 changed files with 18 additions and 0 deletions

View File

@@ -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

View File

@@ -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