阅读背景:

如何在类函数中创建线程?

来源:互联网 

I am very new to C++.

我对c++很陌生。

I have a class, and I want to create a thread inside a class's function. And that thread(function) will call and access the class function and variable as well. At the beginning I tried to use Pthread, but only work outside a class, if I want to access the class function/variable I got an out of scope error. I take a look at Boost/thread but it is not desirable because of I don't want to add any other library to my files(for other reason).I have a c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: