 |
GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
|
|
Go to the documentation of this file.
11 #ifndef RPCBUFFEREDGET_H
12 #define RPCBUFFEREDGET_H
14 #include <boost/thread/condition_variable.hpp>
15 #include <boost/thread/mutex.hpp>
17 template <
typename TdataType>
22 : d_data_needed(false),
25 d_buffer(init_buffer_size)
39 d_data_needed =
false;
41 d_data_ready.notify_one();
48 d_data_ready.wait(lock);
TdataType get()
Definition: rpcbufferedget.h:44
void offer_data(const TdataType &data)
Definition: rpcbufferedget.h:32
boost::condition_variable condition_variable
Definition: thread.h:39
boost::mutex mutex
Definition: thread.h:37
~rpcbufferedget()
Definition: rpcbufferedget.h:30
boost::unique_lock< boost::mutex > scoped_lock
Definition: thread.h:38
rpcbufferedget(const unsigned int init_buffer_size=4096)
Definition: rpcbufferedget.h:21
Definition: rpcbufferedget.h:18