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

Atomic counter class. More...

#include <atomic.h>

Public Member Functions

 counter (long initial=0)
 operator long ()
long operator* ()
long operator++ ()
long operator+= (long offset)
long operator-- ()
long operator-= (long offset)

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 55 of file atomic.h.


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