RaftLib  0.3a
C++ Stream Processing Template Library
Public Member Functions | List of all members
dynalloc Class Reference
Inheritance diagram for dynalloc:
[legend]
Collaboration diagram for dynalloc:
[legend]

Public Member Functions

 dynalloc (Map &map, volatile bool &exit_alloc)
 
virtual void run ()
 
- Public Member Functions inherited from Allocate
 Allocate (Map &map, volatile bool &exit_alloc)
 
virtual ~Allocate ()
 
void waitTillReady ()
 

Additional Inherited Members

- Protected Member Functions inherited from Allocate
void initialize (PortInfo *src, PortInfo *dst, FIFO *fifo)
 
void setReady ()
 
- Protected Attributes inherited from Allocate
std::set< raft::kernel * > & source_kernels
 
std::set< raft::kernel * > & all_kernels
 
std::set< FIFO * > allocated_fifo
 
volatile bool & exit_alloc
 

Member Function Documentation

void dynalloc::run ( )
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.

assume everyone needs a heap for the moment to get working

TODO, fix this one.

BEGIN TEST DATA

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.

Here is the call graph for this function:


The documentation for this class was generated from the following files: