GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mutex Class Reference

#include "oct-mutex.h"

Collaboration diagram for mutex:

Public Member Functions

 mutex (const mutex &m)=default
 
 mutex (void)
 
 ~mutex (void)=default
 
void lock (void)
 
mutexoperator= (const mutex &m)=default
 
bool try_lock (void)
 
void unlock (void)
 

Protected Attributes

std::shared_ptr< base_mutexm_rep
 

Detailed Description

Definition at line 55 of file oct-mutex.h.

Constructor & Destructor Documentation

◆ mutex() [1/2]

mutex::mutex ( void  )

Definition at line 180 of file oct-mutex.cc.

◆ mutex() [2/2]

mutex::mutex ( const mutex m)
default

◆ ~mutex()

mutex::~mutex ( void  )
default

Member Function Documentation

◆ lock()

void mutex::lock ( void  )
inline

◆ operator=()

mutex& mutex::operator= ( const mutex m)
default

◆ try_lock()

bool mutex::try_lock ( void  )
inline

Definition at line 78 of file oct-mutex.h.

References m_rep.

◆ unlock()

void mutex::unlock ( void  )
inline

Member Data Documentation

◆ m_rep

std::shared_ptr<base_mutex> mutex::m_rep
protected

Definition at line 84 of file oct-mutex.h.

Referenced by lock(), try_lock(), and unlock().


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