libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::mutex_t Class Reference

#include <mutex.hpp>

Collaboration diagram for zmq::mutex_t:

Public Member Functions

 mutex_t ()
 
 ~mutex_t ()
 
pthread_mutex_t * get_mutex ()
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 

Private Member Functions

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

Private Attributes

pthread_mutexattr_t attr
 
pthread_mutex_t mutex
 

Detailed Description

Definition at line 96 of file mutex.hpp.

Constructor & Destructor Documentation

zmq::mutex_t::mutex_t ( )
inline

Definition at line 99 of file mutex.hpp.

References attr, mutex, and posix_assert.

zmq::mutex_t::~mutex_t ( )
inline

Definition at line 111 of file mutex.hpp.

References attr, mutex, and posix_assert.

zmq::mutex_t::mutex_t ( const mutex_t )
private

Member Function Documentation

pthread_mutex_t* zmq::mutex_t::get_mutex ( )
inline

Definition at line 142 of file mutex.hpp.

References mutex.

Referenced by zmq::condition_variable_t::wait().

Here is the caller graph for this function:

const mutex_t& zmq::mutex_t::operator= ( const mutex_t )
private
bool zmq::mutex_t::try_lock ( )
inline

Definition at line 126 of file mutex.hpp.

References mutex, and posix_assert.

Member Data Documentation

pthread_mutexattr_t zmq::mutex_t::attr
private

Definition at line 150 of file mutex.hpp.

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

pthread_mutex_t zmq::mutex_t::mutex
private