CGII/framework/include/cgv/os/common_std_thread.h

16 lines
232 B
C
Raw Normal View History

2018-05-17 14:01:02 +00:00
#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)
{
}
};