![]() |
RflySimSDK v3.05
RflySimSDK说明文档
|
Header containing vrpn_Thread, vrpn_Semaphore (formerly in vrpn_Shared.h), as well as a lock-guard class. 更多...
#include "vrpn_Configure.h"
#include <pthread.h>
#include <semaphore.h>
类 | |
class | vrpn_Semaphore |
struct | try_to_lock_t |
class | SemaphoreGuard |
An RAII lock/guard class for vrpn_Semaphore 更多... | |
struct | vrpn_ThreadData |
class | vrpn_Thread |
类型定义 | |
typedef void(* | vrpn_THREAD_FUNC) (vrpn_ThreadData &threadData) |
函数 | |
bool | vrpn_test_threads_and_semaphores (void) |
变量 | |
const try_to_lock_t | try_to_lock = {} |
Dummy variable to pass to SemaphoreGuard to indicate we only want a conditional lock. | |
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.
const try_to_lock_t try_to_lock = {} |
Dummy variable to pass to SemaphoreGuard to indicate we only want a conditional lock.