vrpn 07.35
Virtual Reality Peripheral Network
|
Header containing vrpn_Thread, vrpn_Semaphore (formerly in vrpn_Shared.h), as well as a lock-guard class. More...
Go to the source code of this file.
Classes | |
class | vrpn_Semaphore |
struct | vrpn_ThreadData |
class | vrpn_Thread |
Namespaces | |
namespace | vrpn |
Typedefs | |
typedef void(* | vrpn_THREAD_FUNC) (vrpn_ThreadData &threadData) |
Functions | |
bool | vrpn_test_threads_and_semaphores (void) |
Header containing vrpn_Thread, vrpn_Semaphore (formerly in vrpn_Shared.h), as well as a lock-guard class.
Semaphore and Thread classes derived from Hans Weber's classes from UNC. Don't let the existence of a Thread class fool you into thinking that VRPN is thread-safe. This and the Semaphore are included as building blocks towards making your own code thread-safe. They are here to enable the vrpn_Imager_Logger class to do its thing.
Definition in file vrpn_Thread.h.
typedef void(* vrpn_THREAD_FUNC) (vrpn_ThreadData &threadData) |
Definition at line 179 of file vrpn_Thread.h.
|
extern |
Definition at line 685 of file vrpn_Thread.C.
References vrpn_Thread::available(), vrpn_Semaphore::condP(), vrpn_Thread::go(), vrpn_Thread::number_of_processors(), vrpn_Semaphore::p(), vrpn_ThreadData::pvUD, vrpn_Thread::td, vrpn_Thread::userData(), vrpn_Semaphore::v(), vrpn_gettimeofday, vrpn_SleepMsecs(), and vrpn_TimevalDiff().