iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::FunctionWrapper Class Reference

#include <nrt/Core/Design/details/ThreadHelpers.H>

Wraps up an std::function in a move copyable struct.

Definition at line 46 of file ThreadHelpers.H.

Public Member Functions

template<class Func >
 FunctionWrapper (Func &&f)
 FunctionWrapper (FunctionWrapper &&other)
 FunctionWrapper (FunctionWrapper const &other)=delete
FunctionWrapperoperator= (FunctionWrapper const &other)=delete
FunctionWrapperoperator= (FunctionWrapper &&other)
void operator() ()
 Calls the wrapped function. More...

Member Function Documentation

void nrt::FunctionWrapper::operator() ( )

Calls the wrapped function.

this used to segfault at the end of a program. Adding the test for itsImpl fixes it but wastes CPU

Definition at line 93 of file ThreadHelpers.H.

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