多線程的互斥鎖

class Mutex { public: Mutex() { pthread_mutex_init(&m_mutex, NULL); } ~Mutex() { pthread_mutex_destroy(&m_mutex); } private: DISALLOW_COPY_AND_ASSIGN(Mutex); public: void lock() { pthread_mutex_lo
相關文章
相關標籤/搜索