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(),用于锁定和解锁。

 

参考文献:

 

1. Changessince boost 1.35

 


posted on 2012-08-15 18:45  岚之山  阅读(176)  评论(0编辑  收藏  举报

导航