摘要:
```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 阅读全文
摘要:
```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 = 阅读全文