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

Header containing vrpn_Thread, vrpn_Semaphore (formerly in vrpn_Shared.h), as well as a lock-guard class. More...

#include "vrpn_Configure.h"
#include <pthread.h>
#include <semaphore.h>
Include dependency graph for vrpn_Thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vrpn_Semaphore
 
struct  vrpn::try_to_lock_t
 
class  vrpn::SemaphoreGuard
 An RAII lock/guard class for vrpn_Semaphore. More...
 
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)
 

Variables

const try_to_lock_t vrpn::try_to_lock = {}
 Dummy variable to pass to SemaphoreGuard to indicate we only want a conditional lock.
 

Detailed Description

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.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Definition in file vrpn_Thread.h.

Typedef Documentation

◆ vrpn_THREAD_FUNC

typedef void(* vrpn_THREAD_FUNC) (vrpn_ThreadData &threadData)

Definition at line 179 of file vrpn_Thread.h.

Function Documentation

◆ vrpn_test_threads_and_semaphores()