STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | List of all members
_Deferred_async_state< _Rx > Class Template Reference
Inheritance diagram for _Deferred_async_state< _Rx >:
_Packaged_state< _Rx()>

Public Member Functions

template<class _Fty2 >
 _Deferred_async_state (const _Fty2 &_Fnarg)
 
template<class _Fty2 >
 _Deferred_async_state (_Fty2 &&_Fnarg)
 

Private Member Functions

void _Run_deferred_function (unique_lock< mutex > &_Lock)
 

Constructor & Destructor Documentation

template<class _Rx >
template<class _Fty2 >
_Deferred_async_state< _Rx >::_Deferred_async_state ( const _Fty2 &  _Fnarg)
inline
860  : _Packaged_state<_Rx()>(_Fnarg)
861  { // construct from function object
862  }
template<class _Rx >
template<class _Fty2 >
_Deferred_async_state< _Rx >::_Deferred_async_state ( _Fty2 &&  _Fnarg)
inline
866  : _Packaged_state<_Rx()>(_STD forward<_Fty2>(_Fnarg))
867  { // construct from rvalue function object
868  }

Member Function Documentation

template<class _Rx >
void _Deferred_async_state< _Rx >::_Run_deferred_function ( unique_lock< mutex > &  _Lock)
inlineprivate
872  { // run the deferred function
873  _Lock.unlock();
875  _Lock.lock();
876  }
Definition: future:563
void unlock()
Definition: mutex:324
void lock()
Definition: mutex:289

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