利用c++11,简单定制自己的线程类
simplethread.h
#ifndef SIMPLETHREAD_H
#define SIMPLETHREAD_H
#include <thread>
#include <condition_variable>
#include <memory>
using namespace std::chrono;
class SimpleThread
{
public:
SimpleThread() :m_finished(false),
m_isStart(false)
{
}
void sta