xoreos
0.0.5
|
A functor for a function that needs to be called in the main thread. More...
#include <types.h>
Public Member Functions | |
MainThreadFunctor (const boost::function< T()> &f) | |
void | operator() () const |
T | getReturnValue () const |
const Common::Exception & | getError () const |
Private Attributes | |
boost::function< T()> | func |
boost::shared_ptr< T > | retVal |
boost::shared_ptr< Common::Exception > | error |
A functor for a function that needs to be called in the main thread.
|
inline |
|
inline |
Definition at line 319 of file types.h.
References Events::MainThreadFunctor< T >::error.
Referenced by Events::RequestManager::callInMainThread().
|
inline |
Definition at line 318 of file types.h.
References Events::MainThreadFunctor< T >::retVal.
Referenced by Events::RequestManager::callInMainThread().
|
inline |
Definition at line 306 of file types.h.
References Events::MainThreadFunctor< T >::error, Events::MainThreadFunctor< T >::func, and Events::MainThreadFunctor< T >::retVal.
|
private |
Definition at line 302 of file types.h.
Referenced by Events::MainThreadFunctor< T >::getError(), Events::MainThreadFunctor< void >::getError(), Events::MainThreadFunctor< T >::operator()(), and Events::MainThreadFunctor< void >::operator()().
|
private |
Definition at line 300 of file types.h.
Referenced by Events::MainThreadFunctor< T >::operator()(), and Events::MainThreadFunctor< void >::operator()().
|
private |
Definition at line 301 of file types.h.
Referenced by Events::MainThreadFunctor< T >::getReturnValue(), and Events::MainThreadFunctor< T >::operator()().