
4 Mar
2010
4 Mar
'10
5:02 p.m.
void start(){m_Thread = new boost::thread( &Thread::run, this ); }; //wont start unless I add m_Thread.join();
The thread is created and started anyway. Join() just tells the *caller* thread to wait until m_Thread finishes.
void start(){g_Thread.create_thread(&Thread::run); };
g_Thread.create_thread(boost::bind(&Thread::run, this));