ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::StackTrampoline Class Reference
+ Collaboration diagram for ns3::StackTrampoline:

Public Member Functions

 StackTrampoline ()
 ~StackTrampoline ()
void Jump (PthreadFiberThread *thread)

Static Private Member Functions

static void DoWork (PthreadFiberThread *thread)
static void SignalHandler (int signo)

Private Attributes

jmp_buf m_buf
PthreadFiberThreadm_jumpTarget
void * m_stack
unsigned int m_vgId

Static Private Attributes

static StackTrampolineg_current = 0
static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER

Detailed Description

Definition at line 117 of file pthread-fiber-manager.cc.

Constructor & Destructor Documentation

ns3::StackTrampoline::StackTrampoline ( )
inline

Definition at line 120 of file pthread-fiber-manager.cc.

References g_current, g_mutex, m_stack, m_vgId, SignalHandler(), and VALGRIND_STACK_REGISTER.

+ Here is the call graph for this function:

ns3::StackTrampoline::~StackTrampoline ( )
inline

Definition at line 151 of file pthread-fiber-manager.cc.

References m_stack, m_vgId, and VALGRIND_STACK_DEREGISTER.

Member Function Documentation

static void ns3::StackTrampoline::DoWork ( PthreadFiberThread thread)
inlinestaticprivate
void ns3::StackTrampoline::Jump ( PthreadFiberThread thread)
inline
static void ns3::StackTrampoline::SignalHandler ( int  signo)
inlinestaticprivate

Definition at line 181 of file pthread-fiber-manager.cc.

References DoWork(), g_current, and VALGRIND_MAKE_MEM_DEFINED.

Referenced by StackTrampoline().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

StackTrampoline * ns3::StackTrampoline::g_current = 0
staticprivate

Definition at line 231 of file pthread-fiber-manager.cc.

Referenced by SignalHandler(), and StackTrampoline().

pthread_mutex_t ns3::StackTrampoline::g_mutex = PTHREAD_MUTEX_INITIALIZER
staticprivate

Definition at line 230 of file pthread-fiber-manager.cc.

Referenced by StackTrampoline().

jmp_buf ns3::StackTrampoline::m_buf
private

Definition at line 227 of file pthread-fiber-manager.cc.

Referenced by Jump().

PthreadFiberThread* ns3::StackTrampoline::m_jumpTarget
private

Definition at line 228 of file pthread-fiber-manager.cc.

Referenced by Jump().

void* ns3::StackTrampoline::m_stack
private

Definition at line 226 of file pthread-fiber-manager.cc.

Referenced by Jump(), StackTrampoline(), and ~StackTrampoline().

unsigned int ns3::StackTrampoline::m_vgId
private

Definition at line 229 of file pthread-fiber-manager.cc.

Referenced by StackTrampoline(), and ~StackTrampoline().


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