change the namespace of mutex from std to cdsc
[c11tester.git] / conditionvariable.cc
index 5bd0beb3cd7e2e0c8c0819dc5c20bc18588784a7..d5d0fc83e3bad340c15a85b97f611dfb50224b57 100644 (file)
@@ -1,14 +1,18 @@
-#include <mutex>
+#include "mutex.h"
 #include "model.h"
-#include "conditionvariable.h"
+#include <condition_variable>
+#include "action.h"
 
-
-namespace std {
+namespace cdsc {
 
 condition_variable::condition_variable() {
                
 }
 
+condition_variable::~condition_variable() {
+               
+}
+
 void condition_variable::notify_one() {
        model->switch_to_master(new ModelAction(ATOMIC_NOTIFY_ONE, std::memory_order_seq_cst, this));
 }