vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Mutex Class Referenceabstract

#include <vrpn_Mutex.h>

Inheritance diagram for vrpn_Mutex:
Collaboration diagram for vrpn_Mutex:

Public Member Functions

 vrpn_Mutex (const char *name, vrpn_Connection *=NULL)
 
virtual ~vrpn_Mutex (void)=0
 
void mainloop (void)
 

Protected Member Functions

void sendRequest (vrpn_int32 index)
 
void sendRelease (void)
 
void sendReleaseNotification (void)
 
void sendGrantRequest (vrpn_int32 index)
 
void sendDenyRequest (vrpn_int32 index)
 

Protected Attributes

vrpn_Connectiond_connection
 
vrpn_int32 d_myId
 
vrpn_int32 d_requestIndex_type
 
vrpn_int32 d_requestMutex_type
 
vrpn_int32 d_release_type
 
vrpn_int32 d_releaseNotification_type
 
vrpn_int32 d_grantRequest_type
 
vrpn_int32 d_denyRequest_type
 
vrpn_int32 d_initialize_type
 

Detailed Description

Definition at line 20 of file vrpn_Mutex.h.

Constructor & Destructor Documentation

vrpn_Mutex::~vrpn_Mutex ( void  )
pure virtual

Definition at line 142 of file vrpn_Mutex.C.

References d_connection, and vrpn_Connection::removeReference().

Here is the call graph for this function:

Member Function Documentation

void vrpn_Mutex::mainloop ( void  )

Definition at line 149 of file vrpn_Mutex.C.

References d_connection, and vrpn_Connection::mainloop().

Here is the call graph for this function:

void vrpn_Mutex::sendDenyRequest ( vrpn_int32  index)
protected

Definition at line 206 of file vrpn_Mutex.C.

References d_connection, d_denyRequest_type, d_myId, vrpn_Connection::pack_message(), vrpn_buffer(), vrpn_CONNECTION_RELIABLE, and vrpn_gettimeofday.

Referenced by vrpn_Mutex_Server::handle_requestMutex().

Here is the call graph for this function:

void vrpn_Mutex::sendGrantRequest ( vrpn_int32  index)
protected

Definition at line 192 of file vrpn_Mutex.C.

References d_connection, d_grantRequest_type, d_myId, vrpn_Connection::pack_message(), vrpn_buffer(), vrpn_CONNECTION_RELIABLE, and vrpn_gettimeofday.

Referenced by vrpn_Mutex_Server::handle_requestMutex().

Here is the call graph for this function:

void vrpn_Mutex::sendRelease ( void  )
protected

Definition at line 171 of file vrpn_Mutex.C.

References d_connection, d_myId, d_release_type, vrpn_Connection::pack_message(), vrpn_CONNECTION_RELIABLE, and vrpn_gettimeofday.

Referenced by vrpn_Mutex_Remote::release().

Here is the call graph for this function:

void vrpn_Mutex::sendReleaseNotification ( void  )
protected

Definition at line 182 of file vrpn_Mutex.C.

References d_connection, d_myId, d_releaseNotification_type, vrpn_Connection::pack_message(), vrpn_CONNECTION_RELIABLE, and vrpn_gettimeofday.

Referenced by vrpn_Mutex_Server::handle_release().

Here is the call graph for this function:

void vrpn_Mutex::sendRequest ( vrpn_int32  index)
protected

Definition at line 157 of file vrpn_Mutex.C.

References d_connection, d_myId, d_requestMutex_type, vrpn_Connection::pack_message(), vrpn_buffer(), vrpn_CONNECTION_RELIABLE, and vrpn_gettimeofday.

Referenced by vrpn_Mutex_Remote::request().

Here is the call graph for this function:

Member Data Documentation

vrpn_int32 vrpn_Mutex::d_denyRequest_type
protected
vrpn_int32 vrpn_Mutex::d_grantRequest_type
protected
vrpn_int32 vrpn_Mutex::d_initialize_type
protected
vrpn_int32 vrpn_Mutex::d_release_type
protected
vrpn_int32 vrpn_Mutex::d_releaseNotification_type
protected
vrpn_int32 vrpn_Mutex::d_requestIndex_type
protected
vrpn_int32 vrpn_Mutex::d_requestMutex_type
protected

The documentation for this class was generated from the following files: