tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cppmutex Class Reference

#include <cppmutex.h>

Classes

class  lock
 

Public Member Functions

 cppmutex ()
 
virtual ~cppmutex ()
 

Public Attributes

pthread_mutex_t M
 

Private Member Functions

 cppmutex (const cppmutex &c)
 
cppmutexoperator= (const cppmutex &cp)
 

Detailed Description

Cppmutex is an easy-to-use mutex class. Create a cppmutex instance for a mutex. Create a cppmutex::lock(M) object to get a lock; delete the object to free it.

BE SURE THAT HAVE_PTHREAD IS DEFINED BEFORE INCLUDING THIS FILE

Definition at line 23 of file cppmutex.h.

Constructor & Destructor Documentation

◆ cppmutex() [1/2]

cppmutex::cppmutex ( const cppmutex c)
private

◆ cppmutex() [2/2]

cppmutex::cppmutex ( )
inline

Definition at line 31 of file cppmutex.h.

References M.

◆ ~cppmutex()

virtual cppmutex::~cppmutex ( )
inlinevirtual

Definition at line 37 of file cppmutex.h.

References M.

Member Function Documentation

◆ operator=()

cppmutex& cppmutex::operator= ( const cppmutex cp)
private

Member Data Documentation

◆ M

pthread_mutex_t cppmutex::M

Definition at line 29 of file cppmutex.h.

Referenced by cppmutex(), cppmutex::lock::lock(), ~cppmutex(), and cppmutex::lock::~lock().


The documentation for this class was generated from the following file: