CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
NSROOT::OS::Atomic Class Reference
Collaboration diagram for NSROOT::OS::Atomic:

Public Member Functions

 Atomic (int val)
int load ()
int operator() ()
void store (int val)
int operator= (int val)
int add_fetch (int amount)
int increment ()
int sub_fetch (int amount)
int decrement ()

Private Attributes

std::atomic< int > m_val

Detailed Description

Definition at line 32 of file atomic.h.

Constructor & Destructor Documentation

◆ Atomic() [1/2]

NSROOT::OS::Atomic::Atomic ( )
inline

Definition at line 37 of file atomic.h.

◆ Atomic() [2/2]

NSROOT::OS::Atomic::Atomic ( int val)
inline

Definition at line 38 of file atomic.h.

Member Function Documentation

◆ add_fetch()

int NSROOT::OS::Atomic::add_fetch ( int amount)
inline

Definition at line 56 of file atomic.h.

◆ decrement()

int NSROOT::OS::Atomic::decrement ( )
inline

Definition at line 68 of file atomic.h.

◆ increment()

int NSROOT::OS::Atomic::increment ( )
inline

Definition at line 60 of file atomic.h.

◆ load()

int NSROOT::OS::Atomic::load ( )
inline

Definition at line 39 of file atomic.h.

◆ operator()()

int NSROOT::OS::Atomic::operator() ( )
inline

Definition at line 43 of file atomic.h.

◆ operator=()

int NSROOT::OS::Atomic::operator= ( int val)
inline

Definition at line 51 of file atomic.h.

◆ store()

void NSROOT::OS::Atomic::store ( int val)
inline

Definition at line 47 of file atomic.h.

◆ sub_fetch()

int NSROOT::OS::Atomic::sub_fetch ( int amount)
inline

Definition at line 64 of file atomic.h.

Field Documentation

◆ m_val

std::atomic<int> NSROOT::OS::Atomic::m_val
private

Definition at line 35 of file atomic.h.


The documentation for this class was generated from the following file:
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/os/threads/atomic.h