
Richard Connon
When I try to call wait() on a boost::condition variable with a boost::scoped_try_lock as the argument I get the following error...
XXXXXXX.cpp:XX: error: ‘boost::unique_lockboost::mutex’ is an inaccessible base of ‘boost::detail::try_lock_wrapperboost::mutex’
Does this mean I can't use a condition variable with a try lock?
It means you can't use it with scoped_try_lock. boost::unique_lockboost::mutex provides try-lock support, but the API is different to the old scoped_try_lock, so the latter is provided for backwards compatibility. Anthony -- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976