vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_Thread Class Reference

#include <vrpn_Thread.h>

Collaboration diagram for vrpn_Thread:

Public Types

typedef pthread_t thread_t
 

Public Member Functions

 vrpn_Thread (vrpn_THREAD_FUNC pfThread, vrpn_ThreadData td)
 
 ~vrpn_Thread ()
 
bool go ()
 
bool kill ()
 
bool running ()
 
thread_t pid ()
 
void userData (void *pvNewUserData)
 
void * userData ()
 

Static Public Member Functions

static bool available ()
 
static unsigned number_of_processors ()
 

Static Protected Member Functions

static void threadFuncShell (void *pvThread)
 
static void * threadFuncShellPosix (void *pvThread)
 

Protected Attributes

void(* pfThread )(vrpn_ThreadData &ThreadData)
 
vrpn_ThreadData td
 
thread_t threadID
 

Detailed Description

Definition at line 185 of file vrpn_Thread.h.

Member Typedef Documentation

◆ thread_t

typedef pthread_t vrpn_Thread::thread_t

Definition at line 198 of file vrpn_Thread.h.

Constructor & Destructor Documentation

◆ vrpn_Thread()

vrpn_Thread::vrpn_Thread ( vrpn_THREAD_FUNC pfThread,
vrpn_ThreadData td )

Definition at line 488 of file vrpn_Thread.C.

◆ ~vrpn_Thread()

vrpn_Thread::~vrpn_Thread ( )

Definition at line 606 of file vrpn_Thread.C.

References kill(), and running().

Here is the call graph for this function:

Member Function Documentation

◆ available()

bool vrpn_Thread::available ( )
static

Definition at line 571 of file vrpn_Thread.C.

Referenced by vrpn_test_threads_and_semaphores().

◆ go()

bool vrpn_Thread::go ( )

Definition at line 496 of file vrpn_Thread.C.

References threadFuncShell(), threadFuncShellPosix(), and threadID.

Referenced by vrpn_Imager_Stream_Buffer::handle_got_first_connection(), and vrpn_test_threads_and_semaphores().

Here is the call graph for this function:

◆ kill()

bool vrpn_Thread::kill ( )

Definition at line 527 of file vrpn_Thread.C.

References kill(), and threadID.

Referenced by vrpn_Imager_Stream_Buffer::handle_got_first_connection(), kill(), vrpn_Imager_Stream_Buffer::stop_logging_thread(), and ~vrpn_Thread().

Here is the call graph for this function:

◆ number_of_processors()

unsigned vrpn_Thread::number_of_processors ( )
static

Definition at line 619 of file vrpn_Thread.C.

Referenced by vrpn_test_threads_and_semaphores().

◆ pid()

vrpn_Thread::thread_t vrpn_Thread::pid ( )

Definition at line 569 of file vrpn_Thread.C.

References threadID.

◆ running()

bool vrpn_Thread::running ( )

◆ threadFuncShell()

void vrpn_Thread::threadFuncShell ( void * pvThread)
staticprotected

Definition at line 584 of file vrpn_Thread.C.

References pfThread, td, and threadID.

Referenced by go(), and threadFuncShellPosix().

◆ threadFuncShellPosix()

void * vrpn_Thread::threadFuncShellPosix ( void * pvThread)
staticprotected

Definition at line 600 of file vrpn_Thread.C.

References threadFuncShell().

Referenced by go().

Here is the call graph for this function:

◆ userData() [1/2]

void * vrpn_Thread::userData ( )

Definition at line 582 of file vrpn_Thread.C.

References vrpn_ThreadData::pvUD, and td.

◆ userData() [2/2]

void vrpn_Thread::userData ( void * pvNewUserData)

Definition at line 580 of file vrpn_Thread.C.

References vrpn_ThreadData::pvUD, and td.

Referenced by vrpn_test_threads_and_semaphores().

Member Data Documentation

◆ pfThread

void(* vrpn_Thread::pfThread) (vrpn_ThreadData &ThreadData)
protected

Definition at line 225 of file vrpn_Thread.h.

Referenced by threadFuncShell().

◆ td

vrpn_ThreadData vrpn_Thread::td
protected

◆ threadID

thread_t vrpn_Thread::threadID
protected

Definition at line 236 of file vrpn_Thread.h.

Referenced by go(), kill(), pid(), running(), and threadFuncShell().


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