gem5 v24.0.0.0
Loading...
Searching...
No Matches
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 (gem5::Tick w)
 
gem5::Tick when ()
 
void run ()
 

Private Member Functions

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

Private Attributes

std::function< void()> work
 
gem5::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,
gem5::Tick w )
inlineprivate

Definition at line 54 of file sched_event.hh.

References _events, _it, scheduled(), and when().

◆ scheduled()

◆ scheduledOn()

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

Definition at line 79 of file sched_event.hh.

References _events.

◆ when() [1/2]

gem5::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 ( gem5::Tick w)
inline

Definition at line 81 of file sched_event.hh.

References _when.

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

Friends And Related Symbol 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

gem5::Tick sc_gem5::ScEvent::_when
private

Definition at line 47 of file sched_event.hh.

Referenced by when(), and 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 Tue Jun 18 2024 16:24:56 for gem5 by doxygen 1.11.0