31 #include <boost/shared_ptr.hpp>
32 #include <boost/format.hpp>
33 #include <boost/thread/mutex.hpp>
34 #include <boost/thread/condition.hpp>
36 #include "rsc/rscexports.h"
153 R
get(
double timeout) {
154 MutexType::scoped_lock lock(
mutex);
159 #if BOOST_VERSION >= 105000
160 if (!
condition.timed_wait(lock, boost::posix_time::microseconds(
long(timeout) * 1000000))) {
163 boost::xtime_get(&xt, boost::TIME_UTC);
170 "Timeout while waiting for result. Waited %1% seconds.")
191 MutexType::scoped_lock lock(
mutex);
203 MutexType::scoped_lock lock(
mutex);
217 MutexType::scoped_lock lock(
mutex);