2

I have been reading about boost condition variables for thread synchronization however I could only get access to the class boost::condition_variable and not boost::condition for which I get

'condition is not a member of boost'

any suggestions on what might be going on ? Do I need to download something. I am using VS2010 and boost 1.47

4

1 回答 1

3

From the documentation

#include <boost/thread/condition.hpp>

typedef condition_variable_any condition;

The typedef condition is provided for backwards compatibility with previous boost releases. Note that this has been deprecated in favor of condition_variable_any as of Boost 1.52.0.

于 2013-03-30T23:25:38.933 回答