23 #ifndef RPCBUFFEREDGET_H 24 #define RPCBUFFEREDGET_H 26 #include <boost/thread/condition_variable.hpp> 27 #include <boost/thread/mutex.hpp> 29 template <
typename TdataType>
34 : d_data_needed(false),
37 d_buffer(init_buffer_size)
51 d_data_needed =
false;
53 d_data_ready.notify_one();
60 d_data_ready.wait(lock);
boost::unique_lock< boost::mutex > scoped_lock
Definition: thread.h:49
Definition: rpcbufferedget.h:30
void offer_data(const TdataType &data)
Definition: rpcbufferedget.h:44
~rpcbufferedget()
Definition: rpcbufferedget.h:42
rpcbufferedget(const unsigned int init_buffer_size=4096)
Definition: rpcbufferedget.h:33
boost::mutex mutex
Definition: thread.h:48
boost::condition_variable condition_variable
Definition: thread.h:50