[thread] Multiple readers, one writer locking
I need to design a multiple reader, one writer type thread locking on a STL container. I've been using boost::threads for all my threading and locking so far, but I haven't found a way to do what I want. Then I saw this in the release notes: *************** Read/write mutex functionality added New classes, boost::read_write_mutex, boost::try_read_write_mutex, and boost::timed_read_write_mutex were added. Note Since the read/write mutex and related classes are new, both interface and implementation are liable to change in future releases of Boost.Threads. The lock concepts and lock promotion in particular are still under discussion and very likely to change. *************** But I can't find any documentation on it. Can someone help me out here? Thanks, Scott
These classes were added and then removed from 1.33.1 due to problems with
deadlocks. no solution exists in the boost library at this time. See the
December 5th release info on the boost.org main page.
On 4/20/06, Scott
I need to design a multiple reader, one writer type thread locking on a STL container. I've been using boost::threads for all my threading and locking so far, but I haven't found a way to do what I want.
Then I saw this in the release notes:
*************** Read/write mutex functionality added
New classes, boost::read_write_mutex, boost::try_read_write_mutex, and boost::timed_read_write_mutex were added.
Note Since the read/write mutex and related classes are new, both interface and implementation are liable to change in future releases of Boost.Threads. The lock concepts and lock promotion in particular are still under discussion and very likely to change. ***************
But I can't find any documentation on it. Can someone help me out here?
Thanks, Scott
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Matt Amato
-
Scott