UCommon
Public Member Functions
ucommon::Atomic::counter Class Reference

Atomic counter class. More...

#include <atomic.h>

Public Member Functions

void clear () volatile
 
 counter (atomic_t initial=0)
 
atomic_t fetch_add (atomic_t offset=1) volatile
 
atomic_t fetch_release () volatile
 
atomic_t fetch_retain () volatile
 
atomic_t fetch_sub (atomic_t offset=1) volatile
 
atomic_t get () volatile
 
atomic_t operator * () volatile
 
 operator atomic_t () volatile
 
atomic_t operator++ () volatile
 
atomic_t operator+= (atomic_t offset) volatile
 
atomic_t operator-- () volatile
 
atomic_t operator-= (atomic_t offset) volatile
 

Detailed Description

Atomic counter class.

Can be used to manipulate value of an atomic counter without requiring explicit thread locking.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 60 of file atomic.h.


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