gem5  v22.1.0.0
Public Member Functions | Protected Attributes | Friends | List of all members
gem5::PollEvent Class Referenceabstract

#include <pollevent.hh>

Inheritance diagram for gem5::PollEvent:
gem5::Serializable gem5::BaseRemoteGDB::SocketEvent< F > gem5::TapEvent gem5::TapListener::Event gem5::Terminal::DataEvent gem5::Terminal::ListenEvent gem5::VirtIO9PDiod::DiodDataEvent gem5::VirtIO9PSocket::SocketDataEvent gem5::VncServer::DataEvent gem5::VncServer::ListenEvent gem5::memory::SharedMemoryServer::BaseShmPollEvent

Public Member Functions

 PollEvent (int fd, int event)
 
virtual ~PollEvent ()
 
bool queued ()
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
void disable ()
 
void enable ()
 
virtual void process (int revent)=0
 
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 

Protected Attributes

pollfd pfd
 
PollQueuequeue
 
bool enabled
 

Friends

class PollQueue
 

Additional Inherited Members

- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it. More...
 

Detailed Description

Definition at line 43 of file pollevent.hh.

Constructor & Destructor Documentation

◆ ~PollEvent()

gem5::PollEvent::~PollEvent ( )
virtual

Definition at line 67 of file pollevent.cc.

References queue, and gem5::PollQueue::remove().

Member Function Documentation

◆ serialize()

void gem5::PollEvent::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Implements gem5::Serializable.

Definition at line 94 of file pollevent.cc.

References enabled, pfd, and SERIALIZE_SCALAR.

◆ unserialize()

void gem5::PollEvent::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements gem5::Serializable.

Definition at line 102 of file pollevent.cc.

References enabled, pfd, and UNSERIALIZE_SCALAR.

Friends And Related Function Documentation

◆ PollQueue

friend class PollQueue
friend

Definition at line 46 of file pollevent.hh.

Member Data Documentation

◆ enabled

bool gem5::PollEvent::enabled
protected

Definition at line 51 of file pollevent.hh.

Referenced by disable(), enable(), serialize(), and unserialize().

◆ pfd

pollfd gem5::PollEvent::pfd
protected

Definition at line 49 of file pollevent.hh.

Referenced by PollEvent(), serialize(), and unserialize().

◆ queue

PollQueue* gem5::PollEvent::queue
protected

Definition at line 50 of file pollevent.hh.

Referenced by disable(), enable(), queued(), and ~PollEvent().


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

Generated on Wed Dec 21 2022 10:23:12 for gem5 by doxygen 1.9.1