#include <gr_runtime_types.h>
#include <boost/weak_ptr.hpp>
#include <gruel/thread.h>
#include <gruel/pmt.h>
#include <deque>
Go to the source code of this file.
Function Documentation
Create a new gr_buffer_reader and attach it to buffer buf
.
- Parameters:
-
buf | is the buffer the gr_buffer_reader reads from. |
nzero_preload | -- number of zero items to "preload" into buffer. |
link | is the block that reads from the buffer using this gr_buffer_reader. |
long gr_buffer_ncurrently_allocated |
( |
| ) |
|
returns # of gr_buffers currently allocated
long gr_buffer_reader_ncurrently_allocated |
( |
| ) |
|
returns # of gr_buffer_readers currently allocated
Allocate a buffer that holds at least nitems
of size sizeof_item
.
The total size of the buffer will be rounded up to a system dependent boundary. This is typically the system page size, but under MS windows is 64KB.
- Parameters:
-
nitems | is the minimum number of items the buffer will hold. |
sizeof_item | is the size of an item in bytes. |
link | is the block that writes to this buffer. |