23 #if ! defined (octave_oct_mutex_h)
24 #define octave_oct_mutex_h 1
26 #include "octave-config.h"
42 virtual void lock (
void);
44 virtual void unlock (
void);
109 : mutex (m), lock_result (
false)
117 lock_result = mutex.try_lock ();
126 bool ok (
void)
const {
return lock_result; }
128 operator bool (
void)
const {
return ok (); }
147 static void init (
void);
149 static bool is_octave_thread (
void);
virtual void unlock(void)
octave_refcount< int > count
nd deftypefn *octave_map m
octave_mutex & operator=(const octave_mutex &m)
octave_mutex(const octave_mutex &m)
virtual bool try_lock(void)
octave_autolock(const octave_mutex &m, bool block=true)
virtual ~octave_base_mutex(void)