2013-11-04から1日間の記事一覧
std::threadの使い方メモ。 まずは基本から。 #include <iostream> #include <thread> using namespace std; class Hoge{ public: Hoge() : m_count(0){/**/} void operator()(){ for(int i=0; i<10000000; ++i){ m_count++; } } int m_count; }; int main(int argc, char **ar</thread></iostream>…