#include <wait-queue.h>
Public Member Functions | |
PollTableEntry () | |
PollTableEntry (UnixFd *file, WaitQueueEntryPoll *wait, short eventMask) | |
virtual | ~PollTableEntry () |
virtual void | FreeWait () |
int | IsEventMatch (short e) const |
Private Attributes | |
short const | m_eventMask |
UnixFd *const | m_file |
WaitQueueEntryPoll *const | m_wait |
Entry in the following Poll Table, Each pollable file must subscribe itself in the PollTable by creating a PollTableEntry when it is involved in a poll call
Definition at line 81 of file wait-queue.h.
ns3::PollTableEntry::PollTableEntry | ( | ) |
Definition at line 58 of file wait-queue.cc.
ns3::PollTableEntry::PollTableEntry | ( | UnixFd * | file, |
WaitQueueEntryPoll * | wait, | ||
short | eventMask | ||
) |
file,: | the involved file, |
wait,: | the wait queue entry in the wait queue of the file, |
eventMask,: | Set of wanted events |
Definition at line 63 of file wait-queue.cc.
|
virtual |
Definition at line 69 of file wait-queue.cc.
References m_wait.
|
virtual |
Free the wait queue entry
Reimplemented in ns3::PollTableEntryLinux.
Definition at line 77 of file wait-queue.cc.
References m_file, m_wait, and ns3::UnixFd::RemoveWaitQueue().
int ns3::PollTableEntry::IsEventMatch | ( | short | e | ) | const |
Definition at line 83 of file wait-queue.cc.
References m_eventMask.
Referenced by ns3::WaitQueueEntryPoll::WakeUp().
|
private |
Definition at line 102 of file wait-queue.h.
Referenced by IsEventMatch().
|
private |
Definition at line 100 of file wait-queue.h.
Referenced by FreeWait().
|
private |
Definition at line 101 of file wait-queue.h.
Referenced by FreeWait(), and ~PollTableEntry().