replace boost::thread dependency with std

This commit is contained in:
Mahmood(Thunder07) 2017-02-12 20:42:48 +00:00
parent 4decc7860e
commit e3e3280009
5 changed files with 5 additions and 7 deletions

View File

@ -263,7 +263,7 @@ CMemoryCardView::CRender::CRender(HWND hWnd, const CViewState* pViewState)
, m_threadOver(false)
, m_thread(NULL)
{
m_thread = new boost::thread(std::tr1::bind(&CRender::ThreadProc, this));
m_thread = new std::thread(std::tr1::bind(&CRender::ThreadProc, this));
}
CMemoryCardView::CRender::~CRender()

View File

@ -1,6 +1,5 @@
#pragma once
#include <boost/thread.hpp>
#include <boost/signals2.hpp>
#include <map>
#include "win32/Window.h"
@ -68,7 +67,7 @@ private:
const CMemoryCard* m_memoryCard;
CMailBox m_mailBox;
boost::thread* m_thread;
std::thread* m_thread;
bool m_threadOver;
};

View File

@ -62,7 +62,7 @@ CSaveIconView::CSaveIconView(HWND hParent, const RECT& rect)
Create(WS_EX_STATICEDGE, CLSNAME, _T(""), WS_VISIBLE | WS_CLIPCHILDREN | WS_CHILD, rect, hParent, NULL);
SetClassPtr();
m_thread = new boost::thread(std::tr1::bind(&CSaveIconView::ThreadProc, this));
m_thread = new std::thread(std::tr1::bind(&CSaveIconView::ThreadProc, this));
}
CSaveIconView::~CSaveIconView()

View File

@ -1,7 +1,6 @@
#ifndef _SAVEICONVIEW_H_
#define _SAVEICONVIEW_H_
#include <boost/thread.hpp>
#include "win32/Window.h"
#include "../saves/Save.h"
#include "../MailBox.h"
@ -34,7 +33,7 @@ private:
HGLRC m_hRC;
boost::thread* m_thread;
std::thread* m_thread;
bool m_threadOver;
CMailBox m_mailBox;

View File

@ -8,10 +8,10 @@
#include <set>
#include <functional>
#include <memory>
#include <thread>
#include <boost/signals2.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>
#include "Types.h"
#include "Stream.h"