diff options
| author | gleb-kov <[email protected]> | 2022-02-10 16:46:22 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:22 +0300 |
| commit | 7b1cfa32681104c8468c5824c79fd80d9a88a579 (patch) | |
| tree | 499e0a6e0f35aba718ac262605efb4342996bdca /library/cpp/threading | |
| parent | 89973d10cfeccd97d2f25449a523c93940565edf (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/threading')
| -rw-r--r-- | library/cpp/threading/atomic/bool.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/threading/atomic/bool.h b/library/cpp/threading/atomic/bool.h index d52544e7626..793673d1e64 100644 --- a/library/cpp/threading/atomic/bool.h +++ b/library/cpp/threading/atomic/bool.h @@ -6,16 +6,16 @@ namespace NAtomic { class TBool { public: TBool() noexcept = default; - + TBool(bool val) noexcept : Val_(val) { } - TBool(const TBool& src) noexcept { - AtomicSet(Val_, AtomicGet(src.Val_)); - } - + TBool(const TBool& src) noexcept { + AtomicSet(Val_, AtomicGet(src.Val_)); + } + operator bool() const noexcept { return AtomicGet(Val_); } |
