Move from "conditionvariable.h" to "include/condition_variable". This
allows the normal C++11 #include syntax of:
#include <condition_variable>
#include <mutex>
#include "model.h"
-#include "conditionvariable.h"
+#include <condition_variable>
namespace std {
+++ /dev/null
-#ifndef CONDITIONVARIABLE_H
-#define CONDITIONVARIABLE_H
-
-namespace std {
- class mutex;
-
- struct condition_variable_state {
- int reserved;
- };
-
- class condition_variable {
- public:
- condition_variable();
- ~condition_variable();
- void notify_one();
- void notify_all();
- void wait(mutex& lock);
-
- private:
- struct condition_variable_state state;
- };
-}
-#endif
--- /dev/null
+#ifndef __CXX_CONDITION_VARIABLE__
+#define __CXX_CONDITION_VARIABLE__
+
+namespace std {
+ class mutex;
+
+ struct condition_variable_state {
+ int reserved;
+ };
+
+ class condition_variable {
+ public:
+ condition_variable();
+ ~condition_variable();
+ void notify_one();
+ void notify_all();
+ void wait(mutex& lock);
+
+ private:
+ struct condition_variable_state state;
+ };
+}
+
+#endif /* __CXX_CONDITION_VARIABLE__ */
#include "librace.h"
#include "stdatomic.h"
#include <mutex>
-#include "conditionvariable.h"
+#include <condition_variable>
std::mutex * m;
std::condition_variable *v;