#include <sysc/kernel/sc_spawn.h>
Public Member Functions | |
sc_spawn_object (T object) | |
virtual void | semantics () |
Protected Attributes | |
T | m_object |
This templated helper class allows an object to provide the execution semantics for a process via its () operator. An instance of the supplied execution object will be kept to provide the semantics when the process is scheduled for execution. The () operator does not return a value. An example of an object that might be used for this helper function would be void SC_BOOST bound function or method.
This class is derived from sc_process_host and overloads sc_process_host::semantics to provide the actual semantic content.
sc_spawn_object(T object, const char* name, const sc_spawn_options* opt_p) This is the object instance constructor for this class. It makes a copy of the supplied object. The tp_call constructor is called with an indication that this object instance should be reclaimed when execution completes. object = object whose () operator will be called to provide the process semantics. name_p = optional name for object instance, or zero. opt_p -> spawn options or zero.
virtual void semantics() This virtual method provides the execution semantics for its process. It performs a () operation on m_object.
Definition at line 75 of file sc_spawn.h.
sc_core::sc_spawn_object< T >::sc_spawn_object | ( | T | object | ) | [inline] |
Definition at line 77 of file sc_spawn.h.
virtual void sc_core::sc_spawn_object< T >::semantics | ( | ) | [inline, virtual] |
Definition at line 81 of file sc_spawn.h.
T sc_core::sc_spawn_object< T >::m_object [protected] |
Definition at line 87 of file sc_spawn.h.