vrpn
07.33
Virtual Reality Peripheral Network
|
#include <vrpn_Shared.h>
Public Member Functions | |
vrpn_Semaphore (int cNumResources=1) | |
vrpn_Semaphore (const vrpn_Semaphore &s) | |
~vrpn_Semaphore () | |
bool | reset (int cNumResources=1) |
int | p () |
int | v () |
int | condP () |
int | numResources () |
Protected Member Functions | |
bool | init () |
bool | destroy () |
Protected Attributes | |
int | cResources |
sem_t * | semaphore |
Definition at line 487 of file vrpn_Shared.h.
vrpn_Semaphore::vrpn_Semaphore | ( | int | cNumResources = 1 | ) |
Definition at line 858 of file vrpn_Shared.C.
References init().
vrpn_Semaphore::vrpn_Semaphore | ( | const vrpn_Semaphore & | s | ) |
Definition at line 867 of file vrpn_Shared.C.
References init().
vrpn_Semaphore::~vrpn_Semaphore | ( | ) |
Definition at line 1002 of file vrpn_Shared.C.
References destroy().
int vrpn_Semaphore::condP | ( | ) |
Definition at line 1137 of file vrpn_Shared.C.
References ALL_ASSERT, and semaphore.
Referenced by vrpn_test_threads_and_semaphores().
|
protected |
Definition at line 955 of file vrpn_Shared.C.
References semaphore.
Referenced by reset(), and ~vrpn_Semaphore().
|
protected |
Definition at line 873 of file vrpn_Shared.C.
References cResources, and semaphore.
Referenced by reset(), and vrpn_Semaphore().
int vrpn_Semaphore::numResources | ( | ) |
Definition at line 1207 of file vrpn_Shared.C.
References cResources.
int vrpn_Semaphore::p | ( | ) |
Definition at line 1032 of file vrpn_Shared.C.
References ALL_ASSERT, and semaphore.
Referenced by vrpn_TextPrinter::add_object(), vrpn_TextPrinter::remove_object(), vrpn_TextPrinter::set_min_level_to_print(), vrpn_TextPrinter::set_ostream_to_use(), vrpn_TextPrinter::text_message_handler(), and vrpn_TextPrinter::~vrpn_TextPrinter().
bool vrpn_Semaphore::reset | ( | int | cNumResources = 1 | ) |
Definition at line 1012 of file vrpn_Shared.C.
References cResources, destroy(), and init().
int vrpn_Semaphore::v | ( | ) |
Definition at line 1092 of file vrpn_Shared.C.
References semaphore.
Referenced by vrpn_TextPrinter::add_object(), vrpn_TextPrinter::remove_object(), vrpn_TextPrinter::set_min_level_to_print(), vrpn_TextPrinter::set_ostream_to_use(), vrpn_TextPrinter::text_message_handler(), vrpn_test_threads_and_semaphores(), and vrpn_TextPrinter::~vrpn_TextPrinter().
|
protected |
Definition at line 518 of file vrpn_Shared.h.
Referenced by init(), numResources(), and reset().
|
protected |