DBus-1-TQt  1.0
Atomic Class Reference

#include <tqdbusatomic.h>

List of all members.

Public Member Functions

 Atomic (int value)
void ref ()
bool deref ()

Private Attributes

int m_value

Detailed Description

Definition at line 27 of file tqdbusatomic.h.


Constructor & Destructor Documentation

Atomic::Atomic ( int  value)

Definition at line 34 of file tqdbusintegrator.cpp.

                        : m_value(value)
{
}

Member Function Documentation

bool Atomic::deref ( )

Definition at line 43 of file tqdbusintegrator.cpp.

References m_value.

{
    m_value--;
    return m_value > 0;
}

+ Here is the caller graph for this function:

void Atomic::ref ( )

Definition at line 38 of file tqdbusintegrator.cpp.

References m_value.

{
    m_value++;
}

+ Here is the caller graph for this function:


Member Data Documentation

int Atomic::m_value [private]

Definition at line 37 of file tqdbusatomic.h.


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