sc_during_env Class Reference

Inheritance diagram for sc_during_env:
Inheritance graph
[legend]
Collaboration diagram for sc_during_env:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Instanciate and delete actual implementation

 sc_during_env ()
virtual ~sc_during_env ()
virtual mode get_mode ()
Forward calls to actual implementation

void extra_time (const sc_core::sc_time &t)
void catch_up (const sc_core::sc_time &t)
void sc_call (const boost::function< void()> &f)
void during (const sc_core::sc_time &time, const boost::function< void()> &routine)

Detailed Description

Definition at line 24 of file during-env.h.


Member Function Documentation

void sc_during_env::catch_up ( const sc_core::sc_time &  t  )  [inline, virtual]

Blocks the current task until the SystemC time has reached the end of the task, minus t.

If t == 0, this means wait until the SystemC time has reached the end of this task.

Implements sc_during_if.

Definition at line 61 of file during-env.h.

void sc_during_env::during ( const sc_core::sc_time &  time,
const boost::function< void()> &  routine 
) [inline, virtual]

Create a "during task" of duration time, executing the function routine.

The function routine may be executed as a separate OS thread, and is not allowed to execute SystemC primitives like wait or notify().

Implements sc_during_if.

Definition at line 63 of file during-env.h.

void sc_during_env::extra_time ( const sc_core::sc_time &  t  )  [inline, virtual]

Increase duration of current task by t

Implements sc_during_if.

Definition at line 60 of file during-env.h.

void sc_during_env::sc_call ( const boost::function< void()> &  f  )  [inline, virtual]

Call the function f in the context of SystemC. Unlike the during task, f is allowed to access shared variables without locking, to call SystemC primitives like notify() or wait().

Implements sc_during_if.

Definition at line 62 of file during-env.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Defines