From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2007-11-08 08:40:07
Roland Schwarz <roland.schwarz_at_[hidden]> 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
> 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
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 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk