ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::WaitPoint Class Reference

#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

Threadm_waitTask

Detailed Description

Utility to stop a thread and wake up it.

Definition at line 108 of file wait-queue.h.

Member Enumeration Documentation

Enumerator:
INTERRUPTED 
TIMEOUT 
OK 

Definition at line 111 of file wait-queue.h.

Constructor & Destructor Documentation

ns3::WaitPoint::WaitPoint ( )

Definition at line 88 of file wait-queue.cc.

Member Function Documentation

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:

Member Data Documentation

Thread* ns3::WaitPoint::m_waitTask
private

Definition at line 126 of file wait-queue.h.

Referenced by Wait(), and WakeUpCallback().


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