muduo源碼分析:線程池類ThreadPool

線程池包括linux 成員變量:c++ 一個任務隊列:deque queue_,用條件變量同步git 線程組:ptr_vector threads_github bool running :標誌是否start啓動了,或者stop 中止了編程 成員函數: 服務器 start:初始化線程數目網絡 stop:中止線程池多線程 take:從queue中獲取任務函數 runInThread:線程執行函數 :
相關文章
相關標籤/搜索