C++線程庫 TinyThread++
TinyThread++ 實現了C++0x 線程管理類庫的一個兼容子集。
#include <tinythread.h>using namespace tthread;</pre>
// Thread functionvoid 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>項目地址:
http://tinythread.sourceforge.net/
本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!