| 2464 | #endif |
| 2465 | |
| 2466 | void set_exception(boost::exception_ptr p) |
| 2467 | { |
| 2468 | lazy_init(); |
| 2469 | boost::unique_lock<boost::mutex> lock(future_->mutex); |
| 2470 | if(future_->done) |
| 2471 | { |
| 2472 | boost::throw_exception(promise_already_satisfied()); |
| 2473 | } |
| 2474 | future_->mark_exceptional_finish_internal(p, lock); |
| 2475 | } |
| 2476 | template <typename E> |
| 2477 | void set_exception(E ex) |
| 2478 | { |
nothing calls this directly
no test coverage detected