My Project
|
Public Member Functions | |
dynalloc (Map &map, volatile bool &exit_alloc) | |
virtual void | run () |
![]() | |
Allocate (Map &map, volatile bool &exit_alloc) | |
virtual | ~Allocate () |
void | waitTillReady () |
Additional Inherited Members | |
![]() | |
void | initialize (PortInfo *const src, PortInfo *const dst, FIFO *const fifo) |
virtual void | allocate (PortInfo &a, PortInfo &b, void *data) |
void | setReady () |
![]() | |
kernelkeeper & | source_kernels |
kernelkeeper & | all_kernels |
std::set< FIFO * > | allocated_fifo |
volatile bool & | exit_alloc |
|
virtual |
run - implement this function to create a new allocator, will be run inside a thread so exits when done but if run-time monitoring is desired then this is the place to do it.
same alloc for all, inherit from base alloc
acquire source kernels
make this a fixed quantity right now, if size > .75% at montor interval three times or more then increase size.
TODO, the values might wrap if no monitoring on
get initializer function
start monitor loop
monitor fifo's
Implements Allocate.