linux 伪线程,Linux下面的线程锁,条件变量以及信号量的使用
#include#include#include#include#include#include#includeclassCThreadQueue{public:CThreadQueue(intqueueSize=1024):sizeQueue(queueSize),lput(0),lget(0){pthread_mutex_init(&mux,0);get=sem_open("get",...