summaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/atomic/bool.h
diff options
context:
space:
mode:
authortobo <[email protected]>2026-01-29 19:53:40 +0300
committertobo <[email protected]>2026-01-29 20:22:11 +0300
commit99d70efea929dc771a634078b67cb2f6254ed253 (patch)
treea4c07a1f2a27f2338877fdfd89d0aba1546f4c9e /library/cpp/threading/atomic/bool.h
parent583d77b2c85ee2b73f8f45d63302f3cf89cb18d0 (diff)
move library/cpp/threading/atomic to library/cpp/deprecated/atomic_bool
commit_hash:0981fb113212b130cb676672e125982188e4fd20
Diffstat (limited to 'library/cpp/threading/atomic/bool.h')
-rw-r--r--library/cpp/threading/atomic/bool.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/library/cpp/threading/atomic/bool.h b/library/cpp/threading/atomic/bool.h
deleted file mode 100644
index cd9e3d32ad7..00000000000
--- a/library/cpp/threading/atomic/bool.h
+++ /dev/null
@@ -1,37 +0,0 @@
-#pragma once
-
-#include <atomic>
-
-namespace NAtomic {
- class TBool {
- public:
- TBool() noexcept = default;
-
- TBool(bool val) noexcept
- : Val_(val)
- {
- }
-
- TBool(const TBool& src) noexcept
- : Val_(src.Val_.load())
- {
- }
-
- operator bool() const noexcept {
- return Val_.load();
- }
-
- const TBool& operator=(bool val) noexcept {
- Val_.store(val);
- return *this;
- }
-
- const TBool& operator=(const TBool& src) noexcept {
- Val_.store(src.Val_.load());
- return *this;
- }
-
- private:
- std::atomic<bool> Val_ = false;
- };
-} // namespace NAtomic