vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Thread Class Reference

#include <vrpn_Shared.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 558 of file vrpn_Shared.h.

Member Typedef Documentation

◆ thread_t

typedef pthread_t vrpn_Thread::thread_t

Definition at line 571 of file vrpn_Shared.h.

Constructor & Destructor Documentation

◆ vrpn_Thread()

vrpn_Thread::vrpn_Thread ( vrpn_THREAD_FUNC  pfThread,
vrpn_ThreadData  td 
)

Definition at line 1229 of file vrpn_Shared.C.

◆ ~vrpn_Thread()

vrpn_Thread::~vrpn_Thread ( )

Definition at line 1347 of file vrpn_Shared.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 1312 of file vrpn_Shared.C.

◆ go()

bool vrpn_Thread::go ( )

Definition at line 1237 of file vrpn_Shared.C.

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

Referenced by vrpn_Imager_Stream_Buffer::handle_got_first_connection().

Here is the call graph for this function:

◆ kill()

◆ number_of_processors()

unsigned vrpn_Thread::number_of_processors ( )
static

Definition at line 1360 of file vrpn_Shared.C.

◆ pid()

vrpn_Thread::thread_t vrpn_Thread::pid ( )

Definition at line 1310 of file vrpn_Shared.C.

References threadID.

◆ running()

bool vrpn_Thread::running ( )

◆ threadFuncShell()

void vrpn_Thread::threadFuncShell ( void *  pvThread)
staticprotected

Definition at line 1325 of file vrpn_Shared.C.

References pfThread, td, and threadID.

Referenced by go(), and threadFuncShellPosix().

◆ threadFuncShellPosix()

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

Definition at line 1341 of file vrpn_Shared.C.

References threadFuncShell().

Referenced by go().

Here is the call graph for this function:

◆ userData() [1/2]

void * vrpn_Thread::userData ( )

Definition at line 1323 of file vrpn_Shared.C.

References vrpn_ThreadData::pvUD, and td.

◆ userData() [2/2]

void vrpn_Thread::userData ( void *  pvNewUserData)

Definition at line 1321 of file vrpn_Shared.C.

References vrpn_ThreadData::pvUD, and td.

Member Data Documentation

◆ pfThread

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

Definition at line 598 of file vrpn_Shared.h.

Referenced by threadFuncShell().

◆ td

vrpn_ThreadData vrpn_Thread::td
protected

Definition at line 599 of file vrpn_Shared.h.

Referenced by threadFuncShell(), userData(), and vrpn_test_threads_and_semaphores().

◆ threadID

thread_t vrpn_Thread::threadID
protected

Definition at line 609 of file vrpn_Shared.h.

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


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