libzmq master
The Intelligent Transport Layer
Public Member Functions | Private Member Functions | Private Attributes

zmq::mutex_t Class Reference

#include <mutex.hpp>

List of all members.

Public Member Functions

 mutex_t ()
 ~mutex_t ()
void lock ()
void unlock ()

Private Member Functions

 mutex_t (const mutex_t &)
const mutex_toperator= (const mutex_t &)

Private Attributes

pthread_mutex_t mutex

Detailed Description

Definition at line 78 of file mutex.hpp.


Constructor & Destructor Documentation

zmq::mutex_t::mutex_t ( ) [inline]

Definition at line 81 of file mutex.hpp.

References mutex, and posix_assert.

zmq::mutex_t::~mutex_t ( ) [inline]

Definition at line 88 of file mutex.hpp.

References mutex, and posix_assert.

zmq::mutex_t::mutex_t ( const mutex_t ) [private]

Member Function Documentation

void zmq::mutex_t::lock ( ) [inline]

Definition at line 95 of file mutex.hpp.

References mutex, and posix_assert.

Referenced by zmq::atomic_counter_t::add(), zmq::atomic_ptr_t< command_t >::cas(), zmq::atomic_counter_t::sub(), and zmq::atomic_ptr_t< command_t >::xchg().

Here is the caller graph for this function:

const mutex_t& zmq::mutex_t::operator= ( const mutex_t ) [private]
void zmq::mutex_t::unlock ( ) [inline]

Definition at line 102 of file mutex.hpp.

References mutex, and posix_assert.

Referenced by zmq::atomic_counter_t::add(), zmq::atomic_ptr_t< command_t >::cas(), zmq::atomic_counter_t::sub(), and zmq::atomic_ptr_t< command_t >::xchg().

Here is the caller graph for this function:


Member Data Documentation

pthread_mutex_t zmq::mutex_t::mutex [private]

Definition at line 111 of file mutex.hpp.

Referenced by lock(), mutex_t(), unlock(), and ~mutex_t().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines