46 #if !defined(sc_method_process_h_INCLUDED) 47 #define sc_method_process_h_INCLUDED 66 # define DEBUG_NAME "" 67 # define DEBUG_MSG(NAME,P,MSG) \ 69 if ( P && ( (std::strlen(NAME)==0) || !std::strcmp(NAME,P->name())) ) \ 70 std::cout << "**** " << sc_time_stamp() << " (" \ 71 << sc_get_current_process_name("** NONE **") << "): " << MSG \ 72 << " - " << P->name() << std::endl; \ 75 # define DEBUG_MSG(NAME,P,MSG) 88 class sc_process_table;
89 class sc_process_handle;
102 struct sc_invoke_method;
140 virtual const char*
kind()
const 141 {
return "sc_method_process"; }
195 e.add_dynamic(
this );
238 e.add_dynamic(
this );
305 bool restart =
false;
308 DEBUG_MSG(DEBUG_NAME,
this,
"executing method semantics");
313 DEBUG_MSG(DEBUG_NAME,
this,
"caught unwind exception");
351 #if ! defined( SC_ENABLE_IMMEDIATE_SELF_NOTIFICATIONS ) 357 #endif // SC_ENABLE_IMMEDIATE_SELF_NOTIFICATIONS 472 #endif // !defined(sc_method_process_h_INCLUDED) sc_process_b * sc_get_current_process_b()
void sc_cmethod_cor_fn(void *)
sc_process_b * m_runnable_p
void set_error(sc_report *)
Process base class support.
friend struct sc_invoke_method
friend void next_trigger(sc_simcontext *)
SC_API void next_trigger(sc_simcontext *)
Coroutine abstract base classes.
virtual void kill_process(sc_descendant_inclusion_info descendants=SC_NO_DESCENDANTS)
virtual void resume_process(sc_descendant_inclusion_info descendants=SC_NO_DESCENDANTS)
const sc_event * m_event_p
virtual void throw_reset(bool async)
friend void sc_cmethod_cor_fn(void *)
void report_immediate_self_notification() const
virtual bool is_reset() const
const sc_event_list * m_event_list_p
sc_event * m_timeout_event_p
friend void sc_method_cor_fn(void *)
Coroutine abstract base class.
virtual void disable_process(sc_descendant_inclusion_info descendants=SC_NO_DESCENDANTS)
SC_API sc_report * sc_handle_exception()
Base class for all structural entities.
void sc_method_cor_fn(void *)
void(sc_process_host::* SC_ENTRY_FUNC)()
friend class sc_process_table
friend void sc_set_stack_size(sc_method_handle, std::size_t)
SC_API void sc_set_stack_size(sc_method_handle, std::size_t)
Process spawning options specification.
virtual const char * kind() const
virtual void suspend_process(sc_descendant_inclusion_info descendants=SC_NO_DESCENDANTS)
void set_next_exist(sc_method_handle next_p)
void set_next_runnable(sc_method_handle next_p)
void set_stack_size(std::size_t size)
bool trigger_dynamic(sc_event *)
class sc_method_process * sc_method_handle
virtual void throw_user(const sc_throw_it_helper &helper, sc_descendant_inclusion_info descendants=SC_NO_DESCENDANTS)
sc_method_handle next_exist()
sc_method_handle next_runnable()
#define DEBUG_MSG(NAME, P, MSG)
void add_dynamic(sc_method_handle) const
sc_method_process(const char *name_p, bool free_host, SC_ENTRY_FUNC method_p, sc_process_host *host_p, const sc_spawn_options *opt_p)
class SC_API sc_simcontext
sc_simcontext * simcontext() const
virtual void enable_process(sc_descendant_inclusion_info descendants=SC_NO_DESCENDANTS)
sc_descendant_inclusion_info
Original Author: Martin Janssen, Synopsys, Inc., 2001-05-21.
std::vector< sc_process_monitor * > m_monitor_q