OSVR-Core
Functions
UseSendGuard.h File Reference

Header. More...

#include <osvr/Util/Verbosity.h>
#include <exception>

Go to the source code of this file.

Functions

template<typename InterfaceType , typename F >
OSVR_ReturnCode useSendGuard (InterfaceType &iface, F &&func)
 Calls a function using the send guard, returning the return value of the function if it completes without exception. More...
 
template<typename InterfaceType , typename F >
OSVR_ReturnCode useSendGuardVoid (InterfaceType &iface, F &&func)
 Calls a void function using the send guard, returning success if it completes without exception. More...
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ useSendGuard()

template<typename InterfaceType , typename F >
OSVR_ReturnCode useSendGuard ( InterfaceType &  iface,
F &&  func 
)
inline

Calls a function using the send guard, returning the return value of the function if it completes without exception.

§ useSendGuardVoid()

template<typename InterfaceType , typename F >
OSVR_ReturnCode useSendGuardVoid ( InterfaceType &  iface,
F &&  func 
)
inline

Calls a void function using the send guard, returning success if it completes without exception.