All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
QGpCoreTools::AtomicBoolean Class Reference

A boolean value tha can can accessed in an atomic way. More...

#include <AtomicBoolean.h>

List of all members.

Public Member Functions

 AtomicBoolean (bool v=true)
 AtomicBoolean (const AtomicBoolean &o)
void operator= (const AtomicBoolean &o)
void operator= (bool o)
bool operator== (const AtomicBoolean &o)
bool operator== (bool o)
void setValue (bool v)
bool value () const

Detailed Description

A boolean value tha can can accessed in an atomic way.

Used for thread clean termination.


Constructor & Destructor Documentation

QGpCoreTools::AtomicBoolean::AtomicBoolean ( bool  v = true) [inline]
{_value=v;}
{_value=o._value;}

Member Function Documentation

void QGpCoreTools::AtomicBoolean::operator= ( const AtomicBoolean o) [inline]
{_value=o._value;}
void QGpCoreTools::AtomicBoolean::operator= ( bool  o) [inline]
{_value=o;}
bool QGpCoreTools::AtomicBoolean::operator== ( const AtomicBoolean o) [inline]
{return _value==o._value;}
bool QGpCoreTools::AtomicBoolean::operator== ( bool  o) [inline]
{return _value==o;}
void QGpCoreTools::AtomicBoolean::setValue ( bool  v) [inline]
bool QGpCoreTools::AtomicBoolean::value ( ) const [inline]

Referenced by DinverCore::AbstractForward::firstModel(), RecordList::read(), FileReader::ready(), and FileReader::terminated().

{return _value.testAndSetOrdered(true, true);}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines