strusBase  0.17
Public Member Functions | List of all members
strus::AtomicFlag Class Reference

#include <atomic.hpp>

Inheritance diagram for strus::AtomicFlag:
strus::atomic< bool >

Public Member Functions

 AtomicFlag (bool initialValue_=false)
 Constructor. More...
 
bool set (bool val)
 Set the flag, if the new value changes the current value. More...
 
bool test () const
 Evaluate the current value. More...
 
- Public Member Functions inherited from strus::atomic< bool >
 atomic (boolvalue)
 
 atomic (const atomic &o)
 

Constructor & Destructor Documentation

strus::AtomicFlag::AtomicFlag ( bool  initialValue_ = false)
inline

Constructor.

Member Function Documentation

bool strus::AtomicFlag::set ( bool  val)
inline

Set the flag, if the new value changes the current value.

Returns
true on success
bool strus::AtomicFlag::test ( ) const
inline

Evaluate the current value.

Returns
the current value

The documentation for this class was generated from the following file: