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

#include "oct-mutex.h"

Inheritance diagram for octave::autolock:
Collaboration diagram for octave::autolock:

Public Member Functions

 autolock (const mutex &m, bool block=true)
 
 autolock (const autolock &)=delete
 
 ~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 106 of file oct-mutex.h.

Constructor & Destructor Documentation

◆ autolock() [1/2]

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

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

◆ autolock() [2/2]

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

◆ ~autolock()

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

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

Member Function Documentation

◆ ok()

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

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

◆ operator bool()

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

Definition at line 136 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 142 of file oct-mutex.h.

◆ m_mutex

mutex octave::autolock::m_mutex
private

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


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