DBus-1-TQt  1.0
Atomic Class Reference

#include <tqdbusatomic.h>

+ Collaboration diagram for Atomic:

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::Atomic ( int  value)

Definition at line 34 of file tqdbusintegrator.cpp.

34  : m_value(value)
35 {
36 }
int m_value
Definition: tqdbusatomic.h:37

Member Function Documentation

◆ deref()

bool Atomic::deref ( )

Definition at line 43 of file tqdbusintegrator.cpp.

References m_value, and TQT_DBusConnectionPrivate::messageMetaType.

44 {
45  m_value--;
46  return m_value > 0;
47 }
int m_value
Definition: tqdbusatomic.h:37
+ Here is the caller graph for this function:

◆ ref()

void Atomic::ref ( )

Definition at line 38 of file tqdbusintegrator.cpp.

References m_value.

39 {
40  m_value++;
41 }
int m_value
Definition: tqdbusatomic.h:37
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_value

int Atomic::m_value
private

Definition at line 37 of file tqdbusatomic.h.


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