// 封装了boost的mutex
class BoostLock
{
public:
BoostLock(void){}
virtual ~BoostLock(void) {}
public:
virtual void Lock()
{
m_lock.lock();
}
virtual void UnLock()
{
m_lock.unlock();
}
protected:
boost::mutex m_lock;
}
BOOST mutex 线程锁封装
最新推荐文章于 2023-07-28 16:44:09 发布