CGII/framework/include/cgv/os/common_std_thread.h
2018-05-17 16:01:02 +02:00

15 lines
232 B
C++

#include <thread>
#include <mutex>
#include <condition_variable>
typedef std::mutex Mutex;
struct Condition
{
std::unique_lock<std::mutex> ul;
std::condition_variable cv;
Condition(Mutex& m) : ul(m, std::defer_lock)
{
}
};