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

virtual bool _Has_deferred_function () const _NOEXCEPT
 
virtual 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
850  : _Packaged_state<_Rx()>(_Fnarg)
851  { // construct from function object
852  }
template<class _Rx >
template<class _Fty2 >
_Deferred_async_state< _Rx >::_Deferred_async_state ( _Fty2 &&  _Fnarg)
inline
856  : _Packaged_state<_Rx()>(_STD forward<_Fty2>(_Fnarg))
857  { // construct from rvalue function object
858  }

Member Function Documentation

template<class _Rx >
virtual bool _Deferred_async_state< _Rx >::_Has_deferred_function ( ) const
inlineprivatevirtual
862  { // this function is considered to be deferred until it's invoked
863  return (!this->_Running);
864  }
template<class _Rx >
virtual void _Deferred_async_state< _Rx >::_Run_deferred_function ( unique_lock< mutex > &  _Lock)
inlineprivatevirtual
867  { // run the deferred function
868  _Lock.unlock();
870  _Lock.lock();
871  }
Definition: future:541
void unlock()
Definition: mutex:386
void lock()
Definition: mutex:346

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