摘要: ```C++ #include #include #include #include using namespace std; class sharedPtr{ public: sharedPtr(){ cout << "call default construct\n"; }; sharedPtr(int *_next, int *_val):next(_next), val(_val){ co 阅读全文
posted @ 2020-04-20 16:56 moxin0509 阅读(163) 评论(0) 推荐(0) 编辑
摘要: ```C++ #include #include #include #include #include using namespace std; pthread_cond_t qready = PTHREAD_COND_INITIALIZER; pthread_mutex_t qlock = PTHREAD_MUTEX_INITIALIZER; bool flag = false; int i = 阅读全文
posted @ 2020-04-20 00:37 moxin0509 阅读(298) 评论(0) 推荐(0) 编辑