IBR-DTNSuite
0.12
|
#include <AtomicCounter.h>
Classes | |
class | Lock |
Public Member Functions | |
AtomicCounter (int init=0) | |
virtual | ~AtomicCounter () |
int | value () |
void | wait (int until=0) |
void | unblockAll () |
AtomicCounter & | operator++ () |
AtomicCounter | operator++ (int) |
AtomicCounter & | operator-- () |
AtomicCounter | operator-- (int) |
Definition at line 29 of file AtomicCounter.h.
ibrcommon::AtomicCounter::AtomicCounter | ( | int | init = 0 ) |
Definition at line 27 of file AtomicCounter.cpp.
Referenced by operator++(), and operator--().
|
virtual |
Definition at line 33 of file AtomicCounter.cpp.
References unblockAll().
AtomicCounter & ibrcommon::AtomicCounter::operator++ | ( | ) |
Definition at line 60 of file AtomicCounter.cpp.
References ibrcommon::Conditional::signal().
AtomicCounter ibrcommon::AtomicCounter::operator++ | ( | int | ) |
Definition at line 68 of file AtomicCounter.cpp.
References AtomicCounter(), and ibrcommon::Conditional::signal().
AtomicCounter & ibrcommon::AtomicCounter::operator-- | ( | ) |
Definition at line 76 of file AtomicCounter.cpp.
References ibrcommon::Conditional::signal().
AtomicCounter ibrcommon::AtomicCounter::operator-- | ( | int | ) |
Definition at line 84 of file AtomicCounter.cpp.
References AtomicCounter(), and ibrcommon::Conditional::signal().
void ibrcommon::AtomicCounter::unblockAll | ( | ) |
Definition at line 44 of file AtomicCounter.cpp.
References ibrcommon::Conditional::signal().
Referenced by ~AtomicCounter().
int ibrcommon::AtomicCounter::value | ( | ) |
Definition at line 38 of file AtomicCounter.cpp.
void ibrcommon::AtomicCounter::wait | ( | int | until = 0 ) |
Definition at line 51 of file AtomicCounter.cpp.
References ibrcommon::Conditional::wait().