| 2343 | |
| 2344 | #ifdef BOOST_THREAD_PROVIDES_EXECUTORS |
| 2345 | void set_executor(executor_ptr_type aex) |
| 2346 | { |
| 2347 | lazy_init(); |
| 2348 | if (future_.get()==0) |
| 2349 | { |
| 2350 | boost::throw_exception(promise_moved()); |
| 2351 | } |
| 2352 | boost::lock_guard<boost::mutex> lk(future_->mutex); |
| 2353 | future_->set_executor_policy(aex, lk); |
| 2354 | } |
| 2355 | #endif |
| 2356 | // Result retrieval |
| 2357 | BOOST_THREAD_FUTURE<R> get_future() |
no test coverage detected