23 #if !defined (octave_oct_mutex_h)
24 #define octave_oct_mutex_h 1
40 virtual void lock (
void);
42 virtual void unlock (
void);
107 : mutex (m), lock_result (false)
115 lock_result = mutex.try_lock ();
124 bool ok (
void)
const {
return lock_result; }
126 operator bool (
void)
const {
return ok (); }
145 static void init (
void);
147 static bool is_octave_thread (
void);
virtual void unlock(void)
octave_refcount< int > count
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)