OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::connection::AsyncAccessControl Class Reference

Internal class handling the synchronization of an asynchronous thread wishing to communicate that has to wait for its turn on the communcation bus. More...

#include <osvr/Connection/AsyncAccessControl.h>

Inheritance diagram for osvr::connection::AsyncAccessControl:

Public Member Functions

 AsyncAccessControl ()
 Constructor.
 

Check for waiting async thread, and give it permission to send if found.

Blocks until the async thread completes its work.

Returns
true if there was a request to send.
class RequestToSend
 
bool mainThreadCTS ()
 
bool mainThreadDeny ()
 Check for waiting async thread, and deny it permission to send if found. More...
 
bool mainThreadDenyPermanently ()
 Permanently deny present and future requests. More...
 

Detailed Description

Internal class handling the synchronization of an asynchronous thread wishing to communicate that has to wait for its turn on the communcation bus.

Definition at line 45 of file AsyncAccessControl.h.

Member Function Documentation

bool osvr::connection::AsyncAccessControl::mainThreadDeny ( )

Check for waiting async thread, and deny it permission to send if found.

Blocks until the async thread concludes its request.

Returns
true if there was a request to send.

Definition at line 117 of file AsyncAccessControl.cpp.

bool osvr::connection::AsyncAccessControl::mainThreadDenyPermanently ( )

Permanently deny present and future requests.

Returns
true if there was a request to send.

Definition at line 122 of file AsyncAccessControl.cpp.


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