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

#include "oct-mutex.h"

Collaboration diagram for octave::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 109 of file oct-mutex.h.

Constructor & Destructor Documentation

◆ autolock() [1/2]

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

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

◆ autolock() [2/2]

octave::autolock::autolock ( const autolock )
delete

◆ ~autolock()

octave::autolock::~autolock ( void  )
inline

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

Member Function Documentation

◆ ok()

bool octave::autolock::ok ( void  ) const
inline

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

◆ operator bool()

octave::autolock::operator bool ( void  ) const
inline

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

◆ operator=()

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

Member Data Documentation

◆ m_lock_result

bool octave::autolock::m_lock_result
private

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

◆ m_mutex

mutex octave::autolock::m_mutex
private

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


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