gem5  v20.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
sc_gem5::ScEvent Class Reference

#include <sched_event.hh>

Inheritance diagram for sc_gem5::ScEvent:
sc_gem5::ClockTick

Public Member Functions

 ScEvent (std::function< void()> work)
 
 ~ScEvent ()
 
bool scheduled ()
 
ScEventsscheduledOn ()
 
void when (Tick w)
 
Tick when ()
 
void run ()
 

Private Member Functions

void schedule (ScEvents &events, Tick w)
 
void deschedule ()
 

Private Attributes

std::function< void()> work
 
Tick _when
 
ScEvents_events
 
ScEvents::iterator _it
 

Friends

class Scheduler
 

Detailed Description

Definition at line 43 of file sched_event.hh.

Constructor & Destructor Documentation

◆ ScEvent()

sc_gem5::ScEvent::ScEvent ( std::function< void()>  work)
inline

Definition at line 72 of file sched_event.hh.

◆ ~ScEvent()

sc_gem5::ScEvent::~ScEvent ( )

Definition at line 35 of file sched_event.cc.

References sc_gem5::Scheduler::deschedule(), scheduled(), and sc_gem5::scheduler.

Member Function Documentation

◆ deschedule()

void sc_gem5::ScEvent::deschedule ( )
inlineprivate

Definition at line 65 of file sched_event.hh.

References _events, _it, and scheduled().

Referenced by run().

◆ run()

void sc_gem5::ScEvent::run ( )
inline

Definition at line 84 of file sched_event.hh.

References deschedule(), and work.

◆ schedule()

void sc_gem5::ScEvent::schedule ( ScEvents events,
Tick  w 
)
inlineprivate

Definition at line 54 of file sched_event.hh.

References _events, _it, scheduled(), MipsISA::w, and when().

◆ scheduled()

bool sc_gem5::ScEvent::scheduled ( )
inline

◆ scheduledOn()

ScEvents* sc_gem5::ScEvent::scheduledOn ( )
inline

Definition at line 79 of file sched_event.hh.

References _events.

◆ when() [1/2]

Tick sc_gem5::ScEvent::when ( )
inline

Definition at line 82 of file sched_event.hh.

References _when.

Referenced by schedule().

◆ when() [2/2]

void sc_gem5::ScEvent::when ( Tick  w)
inline

Definition at line 81 of file sched_event.hh.

References _when, and MipsISA::w.

Referenced by sc_gem5::Event::notify().

Friends And Related Function Documentation

◆ Scheduler

friend class Scheduler
friend

Definition at line 51 of file sched_event.hh.

Member Data Documentation

◆ _events

ScEvents* sc_gem5::ScEvent::_events
private

Definition at line 48 of file sched_event.hh.

Referenced by deschedule(), schedule(), scheduled(), and scheduledOn().

◆ _it

ScEvents::iterator sc_gem5::ScEvent::_it
private

Definition at line 49 of file sched_event.hh.

Referenced by deschedule(), and schedule().

◆ _when

Tick sc_gem5::ScEvent::_when
private

Definition at line 47 of file sched_event.hh.

Referenced by when().

◆ work

std::function<void()> sc_gem5::ScEvent::work
private

Definition at line 46 of file sched_event.hh.

Referenced by run().


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

Generated on Wed Sep 30 2020 14:03:10 for gem5 by doxygen 1.8.17