26 #if ! defined (octave_oct_mutex_h)
27 #define octave_oct_mutex_h 1
29 #include "octave-config.h"
48 virtual void lock (
void);
50 virtual void unlock (
void);
80 return m_rep->try_lock ();
84 std::shared_ptr<base_mutex>
m_rep;
93 : m_mutex (
m), m_lock_result (false)
101 m_lock_result = m_mutex.try_lock ();
116 bool ok (
void)
const {
return m_lock_result; }
118 operator bool (
void)
const {
return ok (); }
autolock(const autolock &)=delete
autolock(const mutex &m, bool block=true)
virtual ~base_mutex(void)=default
mutex & operator=(const mutex &m)=default
mutex(const mutex &m)=default
std::shared_ptr< base_mutex > m_rep
static bool is_thread(void)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn