OSVR-Core
Public Member Functions | List of all members
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 <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.

Member Function Documentation

§ mainThreadDeny()

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.

§ mainThreadDenyPermanently()

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

Permanently deny present and future requests.

Returns
true if there was a request to send.

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