10 #ifndef INCLUDED_PMT_POOL_H
11 #define INCLUDED_PMT_POOL_H
13 #include <condition_variable>
34 using scoped_lock = std::unique_lock<std::mutex>;
40 size_t d_allocation_size;
44 std::vector<char*> d_allocations;
55 size_t alignment = 16,
56 size_t allocation_size = 4096,
57 size_t max_items = 0);
very simple thread-safe fixed-size allocation pool
Definition: pmt_pool.h:28
pmt_pool(size_t itemsize, size_t alignment=16, size_t allocation_size=4096, size_t max_items=0)
#define PMT_API
Definition: gnuradio-runtime/include/pmt/api.h:18
GR_RUNTIME_API size_t itemsize(types::vector_type type)
boost::mutex mutex
Definition: thread.h:37
boost::condition_variable condition_variable
Definition: thread.h:39