#include <wait-queue.h>
Inheritance diagram for ns3::WaitPoint:
Collaboration diagram for ns3::WaitPoint:Public Types | |
| enum | Result { INTERRUPTED, TIMEOUT, OK } |
Public Member Functions | |
| WaitPoint () | |
| WaitPoint::Result | Wait (Time to) |
| void | WakeUpCallback () |
Private Attributes | |
| Thread * | m_waitTask |
Utility to stop a thread and wake up it.
Definition at line 108 of file wait-queue.h.
Definition at line 111 of file wait-queue.h.
| ns3::WaitPoint::WaitPoint | ( | ) |
Definition at line 88 of file wait-queue.cc.
| WaitPoint::Result ns3::WaitPoint::Wait | ( | Time | to | ) |
Definition at line 92 of file wait-queue.cc.
References ns3::Current(), ns3::HasPendingSignal(), INTERRUPTED, m_waitTask, ns3::Process::manager, OK, ns3::Thread::process, TIMEOUT, and ns3::DceManager::Wait().
Referenced by dce_poll(), and ns3::LinuxSocketImpl::Poll().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::WaitPoint::WakeUpCallback | ( | ) |
Definition at line 113 of file wait-queue.cc.
References ns3::Task::IsActive(), ns3::Task::IsBlocked(), m_waitTask, ns3::Process::manager, ns3::Thread::process, ns3::Thread::task, and ns3::DceManager::Wakeup().
Referenced by ns3::LinuxSocketFdFactory::PollEvent(), ns3::PollTable::PollWait(), and ns3::WaitQueueEntryTimeout::WakeUp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 126 of file wait-queue.h.
Referenced by Wait(), and WakeUpCallback().