Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::Atomic Class Reference

Atomic integer. More...

#include <atomic.h>

Inheritance diagram for roc::core::Atomic:
Collaboration diagram for roc::core::Atomic:

Public Member Functions

 Atomic (long value=0)
 Initialize with given value. More...
 operator long () const
 Atomic load. More...
long operator= (bool v)
 Atomic store. More...
long operator++ ()
 Atomic increment. More...
long operator-- ()
 Atomic decrement. More...

Detailed Description

Atomic integer.

Definition at line 21 of file atomic.h.

Constructor & Destructor Documentation

roc::core::Atomic::Atomic ( long  value = 0)

Initialize with given value.

Definition at line 24 of file atomic.h.

Member Function Documentation

roc::core::Atomic::operator long ( ) const

Atomic load.

Definition at line 29 of file atomic.h.

long roc::core::Atomic::operator++ ( )

Atomic increment.

Definition at line 47 of file atomic.h.

long roc::core::Atomic::operator-- ( )

Atomic decrement.

Definition at line 52 of file atomic.h.

long roc::core::Atomic::operator= ( bool  v)

Atomic store.

Only boolean values may be implemented in a cross-platform way using GCC legacy __sync builtins.

Definition at line 37 of file atomic.h.

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