線程入口函數

任何callable target – functions, lambda expressions, bind expressions, or other function objects, as well as pointers to member functions and pointers to data members都可以作爲線程的入口函數。

#include <thread>
#include <iostream>
#include <functional>

// 函數
void Foo() {
    std::cout 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章