37 #if !defined(sc_spawn_h_INCLUDED) 38 #define sc_spawn_h_INCLUDED 48 class sc_event_finder;
107 template <
typename T>
110 const char* name_p = 0,
118 if ( !opt_p || !opt_p->is_method() )
125 return thread_handle;
134 return method_handle;
188 #if !defined (__HP_aCC) 208 template <
typename T>
210 typename T::result_type* r_p,
212 const char* name_p = 0,
221 if ( !opt_p || !opt_p->is_method() )
228 return thread_handle;
237 return method_handle;
243 template<
typename T,
typename R>
261 template <
typename T,
typename R>
265 const char* name_p = 0,
274 if ( !opt_p || !opt_p->is_method() )
278 static_cast<sc_core::SC_ENTRY_FUNC>(
282 return thread_handle;
288 static_cast<sc_core::SC_ENTRY_FUNC>(
292 return method_handle;
341 #endif // !defined(sc_spawn_h_INCLUDED)
#define SC_MAKE_FUNC_PTR(callback_tag, func)
sc_process_handle sc_spawn(T object, const char *name_p=0, const sc_spawn_options *opt_p=0)
T::result_type * m_result_p
Process spawning options specification.
class SC_API sc_port_base
sc_process_handle create_thread_process(const char *name_p, bool free_host, SC_ENTRY_FUNC method_p, sc_process_host *host_p, const sc_spawn_options *opt_p)
sc_simcontext * sc_get_curr_simcontext()
sc_process_handle create_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)
sc_spawn_object(T object)
sc_process_b sc_process_b
sc_spawn_object_v(typename T::result_type *r_p, T object)