10 #ifndef INCLUDED_PMT_POOL_H
11 #define INCLUDED_PMT_POOL_H
14 #include <boost/thread.hpp>
33 typedef boost::unique_lock<boost::mutex>
scoped_lock;
39 size_t d_allocation_size;
43 std::vector<char*> d_allocations;
54 size_t alignment = 16,
55 size_t allocation_size = 4096,
56 size_t max_items = 0);
very simple thread-safe fixed-size allocation pool
Definition: pmt_pool.h:27
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
BLOCKS_API size_t itemsize(vector_type type)
boost::mutex mutex
Definition: thread.h:37
boost::unique_lock< boost::mutex > scoped_lock
Definition: thread.h:38
boost::condition_variable condition_variable
Definition: thread.h:39