mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-16 13:22:17 +00:00
use do_invoke()
This commit is contained in:
@@ -273,7 +273,7 @@ public:
|
||||
ctx();
|
||||
// check for unwinding
|
||||
if ( ! unwinding_requested() ) {
|
||||
boost::context::detail::invoke_helper( fn, std::move( tpl) );
|
||||
boost::context::detail::do_invoke( fn, std::move( tpl) );
|
||||
}
|
||||
} catch ( fiber_interrupted const&) {
|
||||
} catch ( forced_unwind const&) {
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
void run( Args && ... args) {
|
||||
try {
|
||||
this->set_value(
|
||||
boost::context::detail::invoke_helper(
|
||||
boost::context::detail::do_invoke(
|
||||
std::move( fn_), std::make_tuple( std::forward< Args >( args) ... ) ) );
|
||||
} catch (...) {
|
||||
this->set_exception( std::current_exception() );
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
void run( Args && ... args) {
|
||||
try {
|
||||
boost::context::detail::invoke_helper(
|
||||
boost::context::detail::do_invoke(
|
||||
std::move( fn_), std::make_tuple( std::forward< Args >( args) ... ) );
|
||||
this->set_value();
|
||||
} catch (...) {
|
||||
|
||||
Reference in New Issue
Block a user