|
gem5
v19.0.0.0
|
#include <pollevent.hh>
Public Member Functions | |
| PollEvent (int fd, int event) | |
| virtual | ~PollEvent () |
| void | disable () |
| void | enable () |
| virtual void | process (int revent)=0 |
| bool | queued () |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. More... | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. More... | |
Public Member Functions inherited from 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 |
| PollQueue * | queue |
| bool | enabled |
Friends | |
| class | PollQueue |
Additional Inherited Members | |
Static Public Member Functions inherited from Serializable | |
| static const std::string & | currentSection () |
| Get the fully-qualified name of the active section. More... | |
| static void | serializeAll (const std::string &cpt_dir) |
| static void | unserializeGlobals (CheckpointIn &cp) |
Static Public Attributes inherited from Serializable | |
| static int | ckptCount = 0 |
| static int | ckptMaxCount = 0 |
| static int | ckptPrevCount = -1 |
Definition at line 43 of file pollevent.hh.
| PollEvent::PollEvent | ( | int | fd, |
| int | event | ||
| ) |
Definition at line 61 of file pollevent.cc.
References pfd.
|
virtual |
Definition at line 69 of file pollevent.cc.
References queue, and PollQueue::remove().
| void PollEvent::disable | ( | ) |
Definition at line 76 of file pollevent.cc.
References PollQueue::copy(), enabled, and queue.
| void PollEvent::enable | ( | ) |
Definition at line 86 of file pollevent.cc.
References PollQueue::copy(), enabled, and queue.
|
pure virtual |
|
inline |
Definition at line 61 of file pollevent.hh.
References serialize(), and unserialize().
Referenced by VncServer::detach(), and EtherTapBase::unserialize().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
| cp | Checkpoint state |
Implements Serializable.
Definition at line 96 of file pollevent.cc.
References enabled, pfd, and SERIALIZE_SCALAR.
Referenced by queued().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
| cp | Checkpoint state |
Implements Serializable.
Definition at line 104 of file pollevent.cc.
References enabled, pfd, and UNSERIALIZE_SCALAR.
Referenced by queued().
|
friend |
Definition at line 46 of file pollevent.hh.
|
protected |
Definition at line 51 of file pollevent.hh.
Referenced by disable(), enable(), serialize(), and unserialize().
|
protected |
Definition at line 49 of file pollevent.hh.
Referenced by PollEvent(), PollQueue::schedule(), serialize(), and unserialize().
|
protected |
Definition at line 50 of file pollevent.hh.
Referenced by disable(), enable(), PollQueue::schedule(), and ~PollEvent().