std::thread 클래스 활용
프로그래밍 언어/C++ 2015. 12. 22. 22:12
Colored By Color Scripter™123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657#pragma once #include #include class Runnable{public: Runnable() : m_stop(), m_thread() { } virtual ~Runnable() { stop(); } Runnable(Runnable const&) = delete; Runnable& operator =(Runnable const&) = delete; void start() { m_thread = std::thread(&Runnable::run, this)..