Common implementation for future and shared_future. More...
#include <future.hpp>
Public Types | |
typedef boost::shared_ptr < detail::shared_state< R > > | future_ptr |
typedef detail::shared_state < R >::move_dest_type | move_dest_type |
typedef future_state::state | state |
Public Member Functions | |
void | set_exceptional_if_invalid () |
basic_future (future_ptr a_future) | |
basic_future (const shared_future< R > &) BOOST_NOEXCEPT | |
basic_future () | |
basic_future (exceptional_ptr const &ex) | |
~basic_future () | |
basic_future (BOOST_THREAD_RV_REF(basic_future) other) BOOST_NOEXCEPT | |
basic_future & | operator= (BOOST_THREAD_RV_REF(basic_future) other) BOOST_NOEXCEPT |
void | swap (basic_future &that) BOOST_NOEXCEPT |
state | get_state () const |
bool | is_ready () const |
bool | has_exception () const |
bool | has_value () const |
launch | launch_policy (boost::unique_lock< boost::mutex > &lk) const |
exception_ptr | get_exception_ptr () |
bool | valid () const BOOST_NOEXCEPT |
void | wait () const |
Static Public Member Functions | |
static future_ptr | make_exceptional_future_ptr (exceptional_ptr const &ex) |
Public Attributes | |
future_ptr | future_ |
Common implementation for future and shared_future.
typedef boost::shared_ptr<detail::shared_state<R> > boost::detail::basic_future< R >::future_ptr |
typedef detail::shared_state<R>::move_dest_type boost::detail::basic_future< R >::move_dest_type |
typedef future_state::state boost::detail::basic_future< R >::state |
|
inline |
|
explicit |
|
inline |
|
inline |
|
inline |
|
inline |
References boost::spirit::x3::unicode::other, and boost::shared_ptr< T >::reset().
|
inline |
|
inline |
References boost::future_state::uninitialized.
Referenced by boost::detail::basic_future< R >::is_ready().
|
inline |
|
inline |
|
inline |
References boost::detail::basic_future< R >::get_state(), and boost::future_state::ready.
|
inline |
References boost::filesystem::detail::none.
|
inlinestatic |
|
inline |
References boost::spirit::x3::unicode::other, and boost::shared_ptr< T >::reset().
Referenced by boost::shared_future< R >::operator=().
|
inline |
|
inline |
References boost::shared_ptr< T >::swap().
|
inline |
|
inline |
References boost::throw_exception().
future_ptr boost::detail::basic_future< R >::future_ |