11#ifndef INCLUDED_GR_RUNTIME_BUFFER_DOUBLE_MAPPED_H
12#define INCLUDED_GR_RUNTIME_BUFFER_DOUBLE_MAPPED_H
35 uint64_t downstream_lcm_nitems,
36 uint32_t downstream_max_out_mult,
37 block_sptr link = block_sptr(),
38 block_sptr buf_owner = block_sptr());
54 void post_work([[maybe_unused]]
int nitems)
override {}
70 assert(s < d_bufsize);
81 assert((
unsigned)s < d_bufsize);
90 uint64_t downstream_lcm_nitems,
92 block_sptr buf_owner);
96 uint64_t downstream_lcm_nitems,
97 uint32_t downstream_max_out_mult,
99 block_sptr buf_owner);
101 std::unique_ptr<gr::vmcircbuf> d_vmcircbuf;
122 uint64_t downstream_lcm_nitems,
123 uint32_t downstream_max_out_mult,
Single writer, multiple reader fifo.
Definition: buffer_double_mapped.h:29
unsigned index_sub(unsigned a, unsigned b) override
Decrement read or write index for this buffer.
Definition: buffer_double_mapped.h:74
unsigned index_add(unsigned a, unsigned b) override
Increment read or write index for this buffer.
Definition: buffer_double_mapped.h:63
friend GR_RUNTIME_API buffer_sptr make_buffer(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, block_sptr link, block_sptr buf_owner)
friend GR_RUNTIME_API buffer_sptr make_buffer_double_mapped(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link, block_sptr buf_owner)
~buffer_double_mapped() override
bool allocate_buffer(int nitems) override
gr::logger_ptr d_debug_logger
Definition: buffer_double_mapped.h:41
gr::logger_ptr d_logger
Definition: buffer_double_mapped.h:40
static buffer_sptr make_buffer(int nitems, size_t sizeof_item, uint64_t downstream_lcm_nitems, uint32_t downstream_max_out_mult, block_sptr link=block_sptr(), block_sptr buf_owner=block_sptr())
static buffer_type type
Definition: buffer_double_mapped.h:31
int space_available() override
return number of items worth of space available for writing
void post_work(int nitems) override
Definition: buffer_double_mapped.h:54
How we keep track of the readers of a gr::buffer.
Definition: buffer_reader.h:49
Base class for describing a buffer's type.
Definition: buffer_type.h:30
Single writer, multiple reader fifo.
Definition: buffer.h:67
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
std::shared_ptr< logger > logger_ptr
Definition: logger.h:225