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

Method init

extern/boost/boost/thread/future.hpp:969–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967 }
968
969 void init(BOOST_THREAD_FWD_REF(Fp) f)
970 {
971#ifdef BOOST_THREAD_FUTURE_BLOCKING
972 this->thr_ = boost::thread(&future_async_shared_state::run, static_shared_from_this(this), boost::forward<Fp>(f));
973#else
974 boost::thread(&future_async_shared_state::run, static_shared_from_this(this), boost::forward<Fp>(f)).detach();
975#endif
976 }
977
978 static void run(shared_ptr<future_async_shared_state> that, BOOST_THREAD_FWD_REF(Fp) f)
979 {

Calls 3

static_shared_from_thisFunction · 0.85
threadFunction · 0.50
detachMethod · 0.45

Tested by

no test coverage detected