gem5
|
Generic callback class. More...
#include <callback.hh>
Public Member Functions | |
virtual | ~Callback () |
virtualize the destructor to make sure that the correct one gets called. More... | |
virtual void | process ()=0 |
virtual process function that is invoked when the callback queue is executed. More... | |
Protected Member Functions | |
virtual void | autoDestruct () |
Friends | |
class | CallbackQueue |
Generic callback class.
This base class provides a virtual process function that gets called when the callback queue is processed.
Definition at line 41 of file callback.hh.
|
inlinevirtual |
virtualize the destructor to make sure that the correct one gets called.
Definition at line 52 of file callback.hh.
|
inlineprotectedvirtual |
Reimplemented in MakeCallback< T, F >, MakeCallback< Uart,&Uart::dataAvailable >, MakeCallback< PciVirtIO,&PciVirtIO::kick >, and MakeCallback< VirtIOConsole::VirtIOConsole::TermRecvQueue,&VirtIOConsole::VirtIOConsole::TermRecvQueue::trySend >.
Definition at line 45 of file callback.hh.
|
pure virtual |
virtual process function that is invoked when the callback queue is executed.
Implemented in DRAMCtrl::RankDumpCallback, ComputeUnit::CUExitCallback, ClockedObjectDumpCallback, BaseTagsDumpCallback, BaseTagsCallback, AbstractController::StatsCallback, CowDiskCallback, RubyStatsCallback, Network::StatsCallback, AnnotateDumpCallback, MakeCallback< T, F >, MakeCallback< Uart,&Uart::dataAvailable >, MakeCallback< PciVirtIO,&PciVirtIO::kick >, MakeCallback< VirtIOConsole::VirtIOConsole::TermRecvQueue,&VirtIOConsole::VirtIOConsole::TermRecvQueue::trySend >, and Stats::SimTicksReset.
Referenced by FlashDevice::actionComplete(), Terminal::data(), and VirtIODeviceBase::kick().
|
friend |
Definition at line 44 of file callback.hh.