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

Function set_executor

extern/boost/boost/thread/future.hpp:2345–2354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers 1

set_executor_policyMethod · 0.85

Calls 5

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

Tested by

no test coverage detected