SST/macro
Public Member Functions | Private Attributes | List of all members
sstmac::mutex_thread_lock Class Reference

#include <thread_lock.h>

Collaboration diagram for sstmac::mutex_thread_lock:
Collaboration graph

Public Member Functions

 mutex_thread_lock ()
 
 ~mutex_thread_lock ()
 
void lock ()
 
void unlock ()
 
bool trylock ()
 
bool locked () const
 

Private Attributes

pthread_mutex_t mutex_
 
bool locked_
 

Detailed Description

Definition at line 13 of file thread_lock.h.

Constructor & Destructor Documentation

sstmac::mutex_thread_lock::mutex_thread_lock ( )
sstmac::mutex_thread_lock::~mutex_thread_lock ( )

Member Function Documentation

void sstmac::mutex_thread_lock::lock ( )
bool sstmac::mutex_thread_lock::locked ( ) const
inline

Definition at line 27 of file thread_lock.h.

References locked_.

bool sstmac::mutex_thread_lock::trylock ( )
void sstmac::mutex_thread_lock::unlock ( )

Member Data Documentation

bool sstmac::mutex_thread_lock::locked_
private

Definition at line 34 of file thread_lock.h.

Referenced by locked().

pthread_mutex_t sstmac::mutex_thread_lock::mutex_
private

Definition at line 32 of file thread_lock.h.


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