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
864  : _Packaged_state<_Rx()>(_Fnarg)
865  { // construct from function object
866  }
template<class _Rx >
template<class _Fty2 >
_Deferred_async_state< _Rx >::_Deferred_async_state ( _Fty2 &&  _Fnarg)
inline
870  : _Packaged_state<_Rx()>(_STD forward<_Fty2>(_Fnarg))
871  { // construct from rvalue function object
872  }

Member Function Documentation

template<class _Rx >
virtual bool _Deferred_async_state< _Rx >::_Has_deferred_function ( ) const
inlineprivatevirtual
876  { // this function is considered to be deferred until it's invoked
877  return (!this->_Running);
878  }
template<class _Rx >
virtual void _Deferred_async_state< _Rx >::_Run_deferred_function ( unique_lock< mutex > &  _Lock)
inlineprivatevirtual
881  { // run the deferred function
882  _Lock.unlock();
884  _Lock.lock();
885  }
Definition: future:555
void unlock()
Definition: mutex:385
void lock()
Definition: mutex:345

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