OpenJAUS SAE SDK  6.0.0
Public Member Functions | Private Attributes | Friends | List of all members
openjaus::system::Mutex Class Reference

#include <Mutex.h>

Public Member Functions

 Mutex ()
 
virtual ~Mutex ()
 
void lock ()
 
void unlock ()
 
virtual std::string toString () const
 

Private Attributes

pthread_mutex_t mutex
 
pthread_mutexattr_t attr
 

Friends

class Condition
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Mutex &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Mutex *object)
 

Constructor & Destructor Documentation

◆ Mutex()

openjaus::system::Mutex::Mutex ( )

◆ ~Mutex()

openjaus::system::Mutex::~Mutex ( )
virtual

Member Function Documentation

◆ lock()

void openjaus::system::Mutex::lock ( )

◆ toString()

std::string openjaus::system::Mutex::toString ( ) const
virtual

◆ unlock()

void openjaus::system::Mutex::unlock ( )

Friends And Related Function Documentation

◆ Condition

friend class Condition
friend

◆ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Mutex object 
)
friend

◆ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Mutex object 
)
friend

Member Data Documentation

◆ attr

pthread_mutexattr_t openjaus::system::Mutex::attr
private

◆ mutex

pthread_mutex_t openjaus::system::Mutex::mutex
private

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