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>
33 d_data_needed(false), d_data_ready(), d_buffer_lock(), d_buffer(init_buffer_size) {;}
36 d_data_ready.notify_all();
45 d_data_needed =
false;
47 d_data_ready.notify_one();
53 d_data_ready.wait(lock);
boost::unique_lock< boost::mutex > scoped_lock
Definition: thread.h:47
Definition: rpcbufferedget.h:30
void offer_data(const TdataType &data)
Definition: rpcbufferedget.h:39
~rpcbufferedget()
Definition: rpcbufferedget.h:35
rpcbufferedget(const unsigned int init_buffer_size=4096)
Definition: rpcbufferedget.h:32
boost::mutex mutex
Definition: thread.h:46
boost::condition_variable condition_variable
Definition: thread.h:48