MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / set_exception

Function set_exception

extern/boost/boost/thread/future.hpp:2466–2475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

lazy_initFunction · 0.85
copy_exceptionFunction · 0.85
throw_exceptionFunction · 0.50

Tested by

no test coverage detected