boost库的lock_ops类的变化
作者:朱金灿
来源:http://blog.csdn.net/clever101
今天搜索资料,发现boost库的lock_ops类从1.35版本中已经被移除。原文是这样说的:boost::detail::thread::lock_ops has been removed. Code that relieson the lock_ops implementation detail will no longer work, as this has beenremoved, as it is no longer necessary now that mutex types now have publiclock() and unlock() member functions.
可以这样理解,就是原来用boost::detail::thread::lock_ops类对互斥对象(指boost::mutex)进行锁定,由于boost::detail::thread::lock_ops被移除,已在boost::mutex类添加了两个公共成员函数:lock() and unlock(),用于锁定和解锁。
参考文献: