LMMS
Loading...
Searching...
No Matches
calf_utils::ptmutex Class Reference

Pthreads based mutex class. More...

#include <utils.h>

Public Member Functions

 ptmutex (int type=PTHREAD_MUTEX_RECURSIVE)
bool lock ()
bool trylock ()
void unlock ()
 ~ptmutex ()

Public Attributes

pthread_mutex_t pm

Detailed Description

Pthreads based mutex class.

Constructor & Destructor Documentation

◆ ptmutex()

calf_utils::ptmutex::ptmutex ( int type = PTHREAD_MUTEX_RECURSIVE)
inline

◆ ~ptmutex()

calf_utils::ptmutex::~ptmutex ( )
inline

Member Function Documentation

◆ lock()

bool calf_utils::ptmutex::lock ( )
inline

◆ trylock()

bool calf_utils::ptmutex::trylock ( )
inline

◆ unlock()

void calf_utils::ptmutex::unlock ( )
inline

Member Data Documentation

◆ pm

pthread_mutex_t calf_utils::ptmutex::pm

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