| 967 | } |
| 968 | |
| 969 | void init(BOOST_THREAD_FWD_REF(Fp) f) |
| 970 | { |
| 971 | #ifdef BOOST_THREAD_FUTURE_BLOCKING |
| 972 | this->thr_ = boost::thread(&future_async_shared_state::run, static_shared_from_this(this), boost::forward<Fp>(f)); |
| 973 | #else |
| 974 | boost::thread(&future_async_shared_state::run, static_shared_from_this(this), boost::forward<Fp>(f)).detach(); |
| 975 | #endif |
| 976 | } |
| 977 | |
| 978 | static void run(shared_ptr<future_async_shared_state> that, BOOST_THREAD_FWD_REF(Fp) f) |
| 979 | { |
no test coverage detected