高效讀寫消息隊列SafeQueue

/******************高效消息隊列 讀寫分離 自旋鎖********************/ class SpinLock { public: SpinLock() { pthread_spin_init(&m_spinlock, 0); } ~SpinLock() { pthread_spin_destroy(&m_spinlock); } private: DISAL
相關文章
相關標籤/搜索