quic/qbox
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
gs::runonsysc Class Reference
Inheritance diagram for gs::runonsysc:
Inheritance graph
[legend]
Collaboration diagram for gs::runonsysc:
Collaboration graph
[legend]

Public Member Functions

 runonsysc (const sc_core::sc_module_name &n="run-on-sysc")
 
bool is_on_sysc () const
 
void end_of_simulation ()
 
void fork_on_systemc (std::function< void()> job_entry)
 
bool run_on_sysc (std::function< void()> job_entry, bool wait=true)
 Run a job on the SystemC kernel thread.
 

Member Function Documentation

◆ run_on_sysc()

bool gs::runonsysc::run_on_sysc ( std::function< void()>  job_entry,
bool  wait = true 
)
inline

Run a job on the SystemC kernel thread.

Parameters
[in]job_entryThe job to run
[in]waitIf true, wait for job completion
Returns
true if the job has been succesfully executed or if wait was false, false if it has been cancelled (see RunOnSysC::cancel_all).

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