![]() |
RflySimSDK v3.05
RflySimSDK说明文档
|
Public 成员函数 | |
vrpn_Semaphore (int cNumResources=1) | |
constructor - mutex by default (0 is a sync primitive) | |
~vrpn_Semaphore () | |
destructor | |
bool | reset (int cNumResources=1) |
routine to reset it (true on success, false on failure) (may create new semaphore) | |
int | p () |
Blocking acquire of resource. ("down") | |
int | v () |
Release of resource. ("up") | |
int | condP () |
Non-blocking attempt to acquire resource ("down") | |
int | numResources () |
read values | |
vrpn_Semaphore | ( | int | cNumResources = 1 | ) |
constructor - mutex by default (0 is a sync primitive)
~vrpn_Semaphore | ( | ) |
destructor
int condP | ( | ) |
Non-blocking attempt to acquire resource ("down")
int numResources | ( | ) |
read values
int p | ( | ) |
Blocking acquire of resource. ("down")
bool reset | ( | int | cNumResources = 1 | ) |
routine to reset it (true on success, false on failure) (may create new semaphore)
int v | ( | ) |
Release of resource. ("up")