C++线程库 TinyThread++

fmms 13年前
     TinyThread++ 实现了C++0x 线程管理类库的一个兼容子集。    <br />    <pre class="brush:cpp; toolbar: true; auto-links: false;">#include <tinythread.h>     using namespace tthread;</pre>    <pre class="brush:cpp; toolbar: true; auto-links: false;">// Thread function     void MyThread(void * arg)     {       // Do child thread stuff     }          // Start the child thread     thread t(MyThread, 0);          // Do main thread stuff     // ...          // Wait for the child thread to finish     t.join();</pre>项目地址:    <a href="/misc/goto?guid=4958190415678200211" target="_blank">http://tinythread.sourceforge.net/</a>