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

Function do_run

extern/boost/boost/thread/future.hpp:3091–3115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3089
3090#if defined BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK && defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD)
3091 void do_run(BOOST_THREAD_RV_REF(ArgTypes) ... args)
3092 {
3093 try
3094 {
3095 this->mark_finished_with_result(f(boost::move(args)...));
3096 }
3097#else
3098 void do_run()
3099 {
3100 try
3101 {
3102#if ! defined BOOST_NO_CXX11_RVALUE_REFERENCES
3103 R res((f()));
3104 this->mark_finished_with_result(boost::move(res));
3105#else
3106 this->mark_finished_with_result(f());
3107#endif
3108 }
3109#endif
3110 catch(...)
3111 {
3112 this->mark_exceptional_finish();
3113 }
3114 }
3115 };
3116
3117#if defined BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK
3118#if defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD)

Callers 1

runFunction · 0.85

Calls 3

moveFunction · 0.50

Tested by

no test coverage detected