support for locks... untested, but doesn't break quick run of a sample of test cases
[c11tester.git] / mutex.h
diff --git a/mutex.h b/mutex.h
index 1c6c3f3624fc1f9f31b4fa8331a756ea1eebee34..a65250b542fafd68a28ab089131d0a4937694784 100644 (file)
--- a/mutex.h
+++ b/mutex.h
@@ -3,6 +3,10 @@
 #include "threads.h"
 
 namespace std {
+       struct mutex_state {
+               bool islocked;
+       };
+
        class mutex {
        public:
                mutex();
@@ -10,9 +14,10 @@ namespace std {
                void lock();
                bool try_lock();
                void unlock();
+               struct mutex_state * get_state() {return &state;}
+               
        private:
-               thread_id_t owner;
-               bool islocked;
+               struct mutex_state state;
        };
 }
 #endif