Result retrieval
| 2355 | #endif |
| 2356 | // Result retrieval |
| 2357 | BOOST_THREAD_FUTURE<R> get_future() |
| 2358 | { |
| 2359 | lazy_init(); |
| 2360 | if (future_.get()==0) |
| 2361 | { |
| 2362 | boost::throw_exception(promise_moved()); |
| 2363 | } |
| 2364 | if (future_obtained) |
| 2365 | { |
| 2366 | boost::throw_exception(future_already_retrieved()); |
| 2367 | } |
| 2368 | future_obtained=true; |
| 2369 | return BOOST_THREAD_FUTURE<R>(future_); |
| 2370 | } |
| 2371 | |
| 2372 | #if defined BOOST_NO_CXX11_RVALUE_REFERENCES |
| 2373 | template <class TR> |
nothing calls this directly
no test coverage detected