[thread] Where is boost::recursive_mutex ?

I just ran into the problem, that I tried to compile a program that was using boost::recursive_mutex. It seems that this type has been removed from the library as a consequence of the rewrite. While this might be fine in principle I am left with the following questions: 1) Where is the documentation of the new threading library? 2) Are all users expected to either upgrade their code or stick with the old version? (Might b e problematic for those that need e.g. asio and thread.) 3) Is there a document that will help in migration? I.e. a document showing what has changed and how user code can be modified? 4) Do we have to expect that the new thread lib will go into 1.35? Regards, Roland aka speedsnail

Roland Schwarz <roland.schwarz@chello.at> writes:
I just ran into the problem, that I tried to compile a program that was using boost::recursive_mutex.
It seems that this type has been removed from the library as a consequence of the rewrite.
No, it hasn't. It's in boost/thread/recursive_mutex.hpp
While this might be fine in principle I am left with the following questions: 1) Where is the documentation of the new threading library?
Needing updating. That's top of my list for the thread library.
2) Are all users expected to either upgrade their code or stick with the old version? (Might b e problematic for those that need e.g. asio and thread.)
I would hope that most things would work unchanged. A few bits will need changing (e.g. any uses of the scoped_lock constructors that took a bool), but it is intended that the new library is backwards-compatible with the old one. The big thing that's different is the old read_write_mutex has been completely replaced with the new shared_mutex, which has different semantics.
3) Is there a document that will help in migration? I.e. a document showing what has changed and how user code can be modified?
No, but I can add one to the docs: there's not much that needs migrating, though there's a few new bits.
4) Do we have to expect that the new thread lib will go into 1.35?
I'm certainly hoping so. That's why I've been trying hard to get everything in over the last few weeks. Anthony -- Anthony Williams Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
participants (2)
-
Anthony Williams
-
Roland Schwarz