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

Function get_future

extern/boost/boost/thread/future.hpp:2357–2370  ·  view source on GitHub ↗

Result retrieval

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Calls 4

lazy_initFunction · 0.85
promise_movedClass · 0.85
throw_exceptionFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected