Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
future.hpp File Reference
#include <boost/thread/detail/config.hpp>
#include <boost/core/scoped_enum.hpp>
#include <stdexcept>
#include <iostream>
#include <boost/thread/exceptional_ptr.hpp>
#include <boost/thread/detail/move.hpp>
#include <boost/thread/detail/invoker.hpp>
#include <boost/thread/detail/invoke.hpp>
#include <boost/thread/thread_time.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
#include <boost/thread/lock_algorithms.hpp>
#include <boost/thread/lock_types.hpp>
#include <boost/exception_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread/csbl/memory/unique_ptr.hpp>
#include <boost/type_traits/is_fundamental.hpp>
#include <boost/thread/detail/is_convertible.hpp>
#include <boost/type_traits/decay.hpp>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/conditional.hpp>
#include <boost/config.hpp>
#include <boost/throw_exception.hpp>
#include <algorithm>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/core/ref.hpp>
#include <boost/scoped_array.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/core/enable_if.hpp>
#include <list>
#include <boost/next_prior.hpp>
#include <vector>
#include <boost/thread/future_error_code.hpp>
#include <boost/utility/result_of.hpp>
#include <boost/thread/thread_only.hpp>
Include dependency graph for future.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  boost::future_error
 
class  boost::future_uninitialized
 
class  boost::broken_promise
 
class  boost::future_already_retrieved
 
class  boost::promise_already_satisfied
 
class  boost::task_already_started
 
class  boost::task_moved
 
class  boost::promise_moved
 
struct  boost::detail::relocker
 
struct  boost::detail::shared_state_base
 
struct  boost::detail::shared_state< T >
 
struct  boost::detail::shared_state< T & >
 
struct  boost::detail::shared_state< void >
 
struct  boost::detail::future_async_shared_state_base< Rp >
 future_async_shared_state_base More...
 
struct  boost::detail::future_async_shared_state< Rp, Fp >
 future_async_shared_state More...
 
struct  boost::detail::future_async_shared_state< void, Fp >
 
struct  boost::detail::future_async_shared_state< Rp &, Fp >
 
struct  boost::detail::future_deferred_shared_state< Rp, Fp >
 future_deferred_shared_state More...
 
struct  boost::detail::future_deferred_shared_state< Rp &, Fp >
 
struct  boost::detail::future_deferred_shared_state< void, Fp >
 
class  boost::detail::future_waiter
 
class  boost::unique_future< R >
 
class  boost::shared_future< R >
 
struct  boost::is_future_type< T >
 
struct  boost::is_future_type< unique_future< T > >
 
struct  boost::is_future_type< shared_future< T > >
 
class  boost::promise< R >
 
class  boost::packaged_task< R >
 
class  boost::detail::base_future
 Common implementation for all the futures independently of the return type. More...
 
class  boost::detail::basic_future< R >
 Common implementation for future and shared_future. More...
 
class  boost::unique_future< R >
 
class  boost::shared_future< R >
 
class  boost::promise< R >
 
class  boost::promise< R & >
 
class  boost::promise< void >
 
class  boost::packaged_task< R >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::future_state
 
 boost::detail
 

Macros

#define BOOST_THREAD_FUTURE   unique_future
 

Enumerations

enum  boost::future_state::state {
  boost::future_state::uninitialized,
  boost::future_state::waiting,
  boost::future_state::ready,
  boost::future_state::moved,
  boost::future_state::deferred
}
 

Functions

 boost::BOOST_SCOPED_ENUM_DECLARE_BEGIN (launch)
 
 boost::BOOST_SCOPED_ENUM_DECLARE_BEGIN (future_status)
 
template<typename Iterator >
boost::disable_if
< is_future_type< Iterator >
, void >::type 
boost::wait_for_all (Iterator begin, Iterator end)
 
template<typename F1 , typename... Fs>
void boost::wait_for_all (F1 &f1, Fs &...fs)
 
template<typename Iterator >
boost::disable_if
< is_future_type< Iterator >
, Iterator >::type 
boost::wait_for_any (Iterator begin, Iterator end)
 
template<typename F1 , typename... Fs>
boost::enable_if
< is_future_type< F1 >
, unsigned >::type 
boost::wait_for_any (F1 &f1, Fs &...fs)
 
template<class Rp , class Fp >
BOOST_THREAD_DCL_MOVABLE_BEG(R)
detail unique_future< Rp > 
boost::make_future_deferred_shared_state (BOOST_THREAD_FWD_REF(Fp) f)
 
 boost::BOOST_THREAD_DCL_MOVABLE_BEG (T) unique_future< T > BOOST_THREAD_DCL_MOVABLE_END template< typename R2 > class unique_future< unique_future< R2 > >
 
template<class F >
unique_future< typename
boost::result_of< typename
decay< F >::type()>::type > 
boost::async (launch policy, BOOST_THREAD_FWD_REF(F) f)
 
template<class F >
unique_future< typename
boost::result_of< F()>::type > 
boost::async (BOOST_THREAD_FWD_REF(F) f)
 
template<typename T >
unique_future< typename decay
< T >::type > 
boost::make_future (BOOST_THREAD_FWD_REF(T) value)
 
template<typename T >
unique_future< typename decay
< T >::type > 
boost::make_ready_future (BOOST_THREAD_FWD_REF(T) value)
 
template<typename T , typename T1 >
unique_future< Tboost::make_ready_no_decay_future (T1 value)
 
template<typename T >
unique_future< Tboost::make_ready_future (exception_ptr ex)
 
template<typename T >
unique_future< Tboost::make_exceptional_future (exception_ptr ex)
 
template<typename T , typename E >
unique_future< Tboost::make_exceptional_future (E ex)
 
template<typename T >
unique_future< Tboost::make_exceptional_future ()
 
template<typename T >
unique_future< Tboost::make_exceptional_future_if_invalid (BOOST_THREAD_FWD_REF(unique_future< T >) fut)
 
template<typename T >
shared_future< Tboost::make_exceptional_future_if_invalid (shared_future< T > fut)
 
template<typename T >
shared_future< typename decay
< T >::type > 
boost::make_shared_future (BOOST_THREAD_FWD_REF(T) value)
 
shared_future< void > boost::make_shared_future ()
 

Macro Definition Documentation

#define BOOST_THREAD_FUTURE   unique_future