OpenDDS  Snapshot(2023/04/28-20:55)
AtomicBool.h
Go to the documentation of this file.
1 #ifndef OPENDDS_DCPS_ATOMIC_BOOL_H
2 #define OPENDDS_DCPS_ATOMIC_BOOL_H
3 
4 #include "Atomic.h"
5 #include "SafeBool_T.h"
6 
8 
10 
11 namespace OpenDDS {
12 namespace DCPS {
13 
14 class AtomicBool : public SafeBool_T<AtomicBool> {
15 public:
17  : impl_(value)
18  {
19  }
20 
21  bool boolean_test() const
22  {
23  return impl_;
24  }
25 
27  {
28  impl_ = value;
29  return *this;
30  }
31 
32 private:
34 };
35 
36 } // namespace DCPS
37 } // namespace OpenDDS
38 
40 
41 #endif
const LogLevel::Value value
Definition: debug.cpp:61
Atomic< bool > impl_
Definition: AtomicBool.h:33
bool boolean_test() const
Definition: AtomicBool.h:21
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
AtomicBool & operator=(bool value)
Definition: AtomicBool.h:26
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28