#include <boost/thread/shared_mutex.hpp>
typedef boost::shared_lock<boost::shared_mutex> read_lock;
typedef boost::unique_lock<boost::shared_mutex> write_lock;
boost读写锁的用法
最新推荐文章于 2023-07-28 16:44:09 发布
#include <boost/thread/shared_mutex.hpp>
typedef boost::shared_lock<boost::shared_mutex> read_lock;
typedef boost::unique_lock<boost::shared_mutex> write_lock;