STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
_LaunchPad< _Target > Class Template Reference
Inheritance diagram for _LaunchPad< _Target >:
_Pad

Public Member Functions

template<class _Other >
 _LaunchPad (_Other &&_Tgt)
 
unsigned _Go ()
 
- Public Member Functions inherited from _Pad
 _Pad ()
 
 ~_Pad () _NOEXCEPT
 
void _Launch (_Thrd_t *_Thr)
 
void _Release ()
 

Static Private Member Functions

static unsigned _Run (_LaunchPad *_Ln)
 

Private Attributes

_Target _MyTarget
 

Constructor & Destructor Documentation

template<class _Target>
template<class _Other >
_LaunchPad< _Target >::_LaunchPad ( _Other &&  _Tgt)
inline
181  : _MyTarget(_STD forward<_Other>(_Tgt))
182  { // construct from target
183  }
_Target _MyTarget
Definition: xthread:199

Member Function Documentation

template<class _Target>
unsigned _LaunchPad< _Target >::_Go ( )
inlinevirtual

Implements _Pad.

186  { // run the thread function object
187  return (_Run(this));
188  }
static unsigned _Run(_LaunchPad *_Ln)
Definition: xthread:191
template<class _Target>
static unsigned _LaunchPad< _Target >::_Run ( _LaunchPad< _Target > *  _Ln)
inlinestaticprivate
192  { // make local copy of function object and call it
193  _Target _Local(_STD forward<_Target>(_Ln->_MyTarget));
194  _Ln->_Release();
195  _Local();
196  return (0);
197  }
_Target _MyTarget
Definition: xthread:199
void _Release()

Member Data Documentation

template<class _Target>
_Target _LaunchPad< _Target >::_MyTarget
private

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