mb_runtime Class Reference

Abstract runtime support for m-blocks. More...

#include <runtime.h>

Inheritance diagram for mb_runtime:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 mb_runtime ()
virtual ~mb_runtime ()
virtual bool run (const std::string &instance_name, const std::string &class_name, pmt_t user_arg, pmt_t *result=0)=0
 Construct and run the specified mblock hierarchy.
mb_mblock_sptr top ()

Protected Attributes

mb_mblock_sptr d_top


Detailed Description

Abstract runtime support for m-blocks.

There should generally be only a single instance of this class.


Constructor & Destructor Documentation

mb_runtime::mb_runtime (  )  [inline]

virtual mb_runtime::~mb_runtime (  )  [virtual]


Member Function Documentation

virtual bool mb_runtime::run ( const std::string &  instance_name,
const std::string &  class_name,
pmt_t  user_arg,
pmt_t result = 0 
) [pure virtual]

Construct and run the specified mblock hierarchy.

This routine turns into the m-block scheduler, and blocks until the system is shutdown.

Parameters:
instance_name name of the top-level mblock (conventionally "top")
class_name The class of the top-level mblock to create.
user_arg The argument to pass to the top-level mblock constructor
result The value passed to shutdown_all.
Returns:
true if the system ran successfully.

Implemented in mb_runtime_nop, and mb_runtime_thread_per_block.

mb_mblock_sptr mb_runtime::top (  )  [inline]

References d_top.


Member Data Documentation

Referenced by top().


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

Generated on Wed Jul 29 06:33:13 2009 for GNU Radio 3.2.2 C++ API by  doxygen 1.5.9