60 typedef std::shared_ptr<BufferManager>
Sptr;
71 static Sptr make(
const std::string &name);
93 virtual bool empty(
void)
const = 0;
117 virtual void pop(
const size_t numBytes) = 0;
138 void setCallback(
const std::function<
void(
const ManagedBuffer &)> &callback);
141 bool isInitialized(
void)
const;
153 std::function<void(const ManagedBuffer &)> _callback;
170 if (_callback) _callback(buff);
171 else this->push(buff);
size_t numBuffers
Definition: BufferManager.hpp:35
const BufferChunk & front(void) const
Definition: BufferManager.hpp:158
#define POTHOS_API
Definition: Config.hpp:41
void pushExternal(const ManagedBuffer &buff)
Definition: BufferManager.hpp:168
long nodeAffinity
Definition: BufferManager.hpp:48
Definition: BufferManager.hpp:56
Definition: ManagedBuffer.hpp:31
void setFrontBuffer(const BufferChunk &buff)
Called by derived classes to set the buffer for front()
Definition: BufferManager.hpp:163
bool isInitialized(void) const
Has this buffer manager been initialized?
Definition: BufferManager.hpp:174
Definition: BufferManager.hpp:24
std::shared_ptr< BufferManager > Sptr
Definition: BufferManager.hpp:60
POTHOS_API void init(void)
size_t bufferSize
Definition: BufferManager.hpp:41
Definition: BufferChunk.hpp:30