![]() |
libzmq master
The Intelligent Transport Layer
|
#include <atomic_counter.hpp>
Collaboration diagram for zmq::atomic_counter_t:Public Types | |
| typedef uint32_t | integer_t |
Public Member Functions | |
| atomic_counter_t (integer_t value_=0) | |
| ~atomic_counter_t () | |
| integer_t | add (integer_t increment_) |
| integer_t | get () |
| void | set (integer_t value_) |
| bool | sub (integer_t decrement) |
Private Member Functions | |
| atomic_counter_t (const atomic_counter_t &) | |
| const atomic_counter_t & | operator= (const atomic_counter_t &) |
Private Attributes | |
| mutex_t | sync |
| volatile integer_t | value |
Definition at line 55 of file atomic_counter.hpp.
| typedef uint32_t zmq::atomic_counter_t::integer_t |
Definition at line 59 of file atomic_counter.hpp.
| zmq::atomic_counter_t::atomic_counter_t | ( | integer_t | value_ = 0 | ) | [inline] |
Definition at line 61 of file atomic_counter.hpp.
| zmq::atomic_counter_t::~atomic_counter_t | ( | ) | [inline] |
Definition at line 66 of file atomic_counter.hpp.
| zmq::atomic_counter_t::atomic_counter_t | ( | const atomic_counter_t & | ) | [private] |
Definition at line 77 of file atomic_counter.hpp.
References zmq::mutex_t::lock(), sync, zmq::mutex_t::unlock(), and value.
Here is the call graph for this function:| integer_t zmq::atomic_counter_t::get | ( | ) | [inline] |
Definition at line 133 of file atomic_counter.hpp.
References value.
| const atomic_counter_t& zmq::atomic_counter_t::operator= | ( | const atomic_counter_t & | ) | [private] |
| void zmq::atomic_counter_t::set | ( | integer_t | value_ | ) | [inline] |
Definition at line 71 of file atomic_counter.hpp.
References value.
| bool zmq::atomic_counter_t::sub | ( | integer_t | decrement | ) | [inline] |
Definition at line 104 of file atomic_counter.hpp.
References zmq::mutex_t::lock(), sync, zmq::mutex_t::unlock(), and value.
Here is the call graph for this function:mutex_t zmq::atomic_counter_t::sync [private] |
Definition at line 142 of file atomic_counter.hpp.
volatile integer_t zmq::atomic_counter_t::value [private] |
1.7.3