#include <waiter.h>
Public Types | |
enum | Result { INTERRUPTED, TIMEOUT, OK } |
Public Member Functions | |
Waiter () | |
~Waiter () | |
Time | GetTimeoutLeft (void) const |
void | SetTimeout (Time timeout) |
Waiter::Result | Wait (void) |
bool | WaitDoSignal (void) |
void | Wakeup (void) |
Private Attributes | |
Time | m_timeout |
Thread * | m_waiting |
enum ns3::Waiter::Result |
Time ns3::Waiter::GetTimeoutLeft | ( | void | ) | const |
void ns3::Waiter::SetTimeout | ( | Time | timeout | ) |
Waiter::Result ns3::Waiter::Wait | ( | void | ) |
Definition at line 59 of file waiter.cc.
References ns3::Current(), ns3::HasPendingSignal(), INTERRUPTED, m_timeout, m_waiting, ns3::Process::manager, OK, ns3::Thread::process, TIMEOUT, and ns3::DceManager::Wait().
Referenced by WaitDoSignal().
bool ns3::Waiter::WaitDoSignal | ( | void | ) |
Definition at line 86 of file waiter.cc.
References ns3::Current(), ns3::Thread::err, INTERRUPTED, OK, TIMEOUT, ns3::UtilsDoSignal(), and Wait().
Referenced by dce_waitpid().
void ns3::Waiter::Wakeup | ( | void | ) |
Definition at line 109 of file waiter.cc.
References ns3::Task::IsActive(), ns3::Task::IsBlocked(), m_waiting, ns3::Process::manager, ns3::Thread::process, ns3::Thread::task, and ns3::DceManager::Wakeup().
Referenced by ns3::DceManager::WakeupChildWaiters().
|
private |
Definition at line 60 of file waiter.h.
Referenced by GetTimeoutLeft(), SetTimeout(), and Wait().
|
private |