c++ 线程锁2019-12-19 本文已影响0人 送分童子笑嘻嘻#include <boost/thread/mutex.hpp> boost::mutex mutex; mutex.lock();//锁 mutex.unlock();//解锁