casa::sdfiller::Mutex Class Reference

#include <PThreadUtil.h>

List of all members.

Public Member Functions

 Mutex ()
 ~Mutex ()
int lock ()
int unlock ()
int try_lock ()

Protected Attributes

pthread_mutex_t mutex_

Friends

class PCondition

Detailed Description

Definition at line 23 of file PThreadUtil.h.


Constructor & Destructor Documentation

casa::sdfiller::Mutex::Mutex (  )  [inline]

cout << "Mutex::Mutex()" << endl;

Definition at line 25 of file PThreadUtil.h.

References mutex_, and THROW_IF.

casa::sdfiller::Mutex::~Mutex (  )  [inline]

cout << "Mutex::~Mutex()" << endl;

Definition at line 31 of file PThreadUtil.h.

References mutex_, and THROW_IF.


Member Function Documentation

int casa::sdfiller::Mutex::lock (  )  [inline]

cout << "Mutex::lock()" << endl;

Definition at line 36 of file PThreadUtil.h.

References mutex_, and THROW_IF.

Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::lock().

int casa::sdfiller::Mutex::try_lock (  )  [inline]

cout << "Mutex::try_lock()" << endl;

Definition at line 48 of file PThreadUtil.h.

References mutex_.

Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::try_lock().

int casa::sdfiller::Mutex::unlock (  )  [inline]

cout << "Mutex::unlock()" << endl;

Definition at line 42 of file PThreadUtil.h.

References mutex_, and THROW_IF.

Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::unlock().


Friends And Related Function Documentation

friend class PCondition [friend]

Definition at line 56 of file PThreadUtil.h.


Member Data Documentation

pthread_mutex_t casa::sdfiller::Mutex::mutex_ [protected]

Definition at line 54 of file PThreadUtil.h.

Referenced by lock(), Mutex(), try_lock(), unlock(), and ~Mutex().


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

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1