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

#include "oct-mutex.h"

Collaboration diagram for autolock:

Public Member Functions

 autolock (const autolock &)=delete
 
 autolock (const mutex &m, bool block=true)
 
 ~autolock (void)
 
bool ok (void) const
 
 operator bool (void) const
 
autolockoperator= (const autolock &)=delete
 

Private Attributes

bool m_lock_result
 
mutex m_mutex
 

Detailed Description

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

Constructor & Destructor Documentation

◆ autolock() [1/2]

autolock::autolock ( const mutex m,
bool  block = true 
)
inline

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

◆ autolock() [2/2]

autolock::autolock ( const autolock )
delete

◆ ~autolock()

autolock::~autolock ( void  )
inline

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

Member Function Documentation

◆ ok()

bool autolock::ok ( void  ) const
inline

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

◆ operator bool()

autolock::operator bool ( void  ) const
inline

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

◆ operator=()

autolock& autolock::operator= ( const autolock )
delete

Member Data Documentation

◆ m_lock_result

bool autolock::m_lock_result
private

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

◆ m_mutex

mutex autolock::m_mutex
private

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


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