casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casa::async::Mutex Class Reference

#include <AsynchronousTools.h>

Public Member Functions

 Mutex ()
 
virtual ~Mutex ()
 
void lock ()
 casacore::Bool isLockedByThisThread () const; // for debug purposes only !!! More...
 
void unlock ()
 casacore::Bool lock (casacore::Int milliseconds); More...
 
bool trylock ()
 
void acquirelock ()
 jagonzal: Useful when mandatory is locking More...
 

Protected Member Functions

std::mutex & getMutex ()
 

Private Member Functions

 Mutex (const Mutex &other)
 
Mutex operator= (const Mutex &other)
 

Private Attributes

bool isLocked_p
 
MutexImpl * impl_p
 

Friends

class Condition
 
class UniqueLock
 

Detailed Description

Definition at line 30 of file AsynchronousTools.h.

Constructor & Destructor Documentation

casa::async::Mutex::Mutex ( )
virtual casa::async::Mutex::~Mutex ( )
virtual
casa::async::Mutex::Mutex ( const Mutex other)
private

Member Function Documentation

void casa::async::Mutex::acquirelock ( )

jagonzal: Useful when mandatory is locking

std::mutex& casa::async::Mutex::getMutex ( )
protected
void casa::async::Mutex::lock ( )

casacore::Bool isLockedByThisThread () const; // for debug purposes only !!!

Mutex casa::async::Mutex::operator= ( const Mutex other)
private
bool casa::async::Mutex::trylock ( )
void casa::async::Mutex::unlock ( )

casacore::Bool lock (casacore::Int milliseconds);

Friends And Related Function Documentation

friend class Condition
friend

Definition at line 32 of file AsynchronousTools.h.

friend class UniqueLock
friend

Definition at line 33 of file AsynchronousTools.h.

Member Data Documentation

MutexImpl* casa::async::Mutex::impl_p
private

Definition at line 57 of file AsynchronousTools.h.

bool casa::async::Mutex::isLocked_p
private

Definition at line 56 of file AsynchronousTools.h.


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