vrpn 07.35
Virtual Reality Peripheral Network
|
#include <vrpn_Thread.h>
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 |
Definition at line 185 of file vrpn_Thread.h.
typedef pthread_t vrpn_Thread::thread_t |
Definition at line 198 of file vrpn_Thread.h.
vrpn_Thread::vrpn_Thread | ( | vrpn_THREAD_FUNC | pfThread, |
vrpn_ThreadData | td | ||
) |
Definition at line 488 of file vrpn_Thread.C.
vrpn_Thread::~vrpn_Thread | ( | ) |
Definition at line 606 of file vrpn_Thread.C.
References kill(), and running().
|
static |
Definition at line 571 of file vrpn_Thread.C.
Referenced by vrpn_test_threads_and_semaphores().
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().
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().
|
static |
Definition at line 619 of file vrpn_Thread.C.
Referenced by vrpn_test_threads_and_semaphores().
vrpn_Thread::thread_t vrpn_Thread::pid | ( | ) |
Definition at line 569 of file vrpn_Thread.C.
References threadID.
bool vrpn_Thread::running | ( | ) |
Definition at line 567 of file vrpn_Thread.C.
References threadID.
Referenced by vrpn_Imager_Stream_Buffer::handle_got_first_connection(), vrpn_Imager_Stream_Buffer::stop_logging_thread(), and ~vrpn_Thread().
|
staticprotected |
Definition at line 584 of file vrpn_Thread.C.
References pfThread, td, and threadID.
Referenced by go(), and threadFuncShellPosix().
|
staticprotected |
Definition at line 600 of file vrpn_Thread.C.
References threadFuncShell().
Referenced by go().
void * vrpn_Thread::userData | ( | ) |
Definition at line 582 of file vrpn_Thread.C.
References vrpn_ThreadData::pvUD, and td.
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().
|
protected |
Definition at line 225 of file vrpn_Thread.h.
Referenced by threadFuncShell().
|
protected |
Definition at line 226 of file vrpn_Thread.h.
Referenced by threadFuncShell(), userData(), and vrpn_test_threads_and_semaphores().
|
protected |
Definition at line 236 of file vrpn_Thread.h.
Referenced by go(), kill(), pid(), running(), and threadFuncShell().