摘要: 1 #pragma once 2 3 #include 4 5 #include 6 7 #include 8 9 #include 10 11 #include 12 13 #include 14 15 namespace std { 16 17 //线程池最大容量,应尽量设小一点 18 #define THRE... 阅读全文
posted @ 2018-01-26 11:05 bingo_qiu 阅读(476) 评论(1) 推荐(0)
摘要: 1 template 2 class Singleton 3 { 4 public: 5 using object_type = T; 6 struct object_creator 7 { 8 object_creator() 9 { 10 Singleton::instance(); 11 ... 阅读全文
posted @ 2018-01-26 11:03 bingo_qiu 阅读(178) 评论(1) 推荐(0)