OSVR-Core
|
An interface to a (deferred) guard class: after instantiation and lock returning true, some resource is locked and available until destruction. More...
#include <GuardInterface.h>
Public Member Functions | |
virtual OSVR_RETURN_WARN_UNUSED bool | lock ()=0 |
Attempts to lock/request the resource, and returns true if successful. More... | |
An interface to a (deferred) guard class: after instantiation and lock returning true, some resource is locked and available until destruction.
|
pure virtual |
Attempts to lock/request the resource, and returns true if successful.
Only proceed with using the resource if this returns true!
Implemented in osvr::connection::AsyncSendGuard, and osvr::util::DummyGuard.