HLIBpro  2.0
Public Member Functions | List of all members
TMutex Class Reference

Wraps OpenMP locks.

#include <TMutex.hh>

Public Member Functions

 TMutex ()
 construct non-locked mutex
 
 ~TMutex ()
 free OpenMP mutex (no unlock)
 
void lock ()
 lock mutex
 
void unlock ()
 unlock mutex
 
bool is_locked ()
 return true if mutex is locked, and false otherwise
 
size_t byte_size () const
 return size in bytes used by this object