mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 02:12:24 +00:00
do_invoke() renamed to apply()
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/context/detail/invoke.hpp>
|
||||
#include <boost/context/detail/apply.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/context/stack_context.hpp>
|
||||
#include <boost/intrusive/list.hpp>
|
||||
@@ -294,7 +294,7 @@ public:
|
||||
}
|
||||
auto fn = std::move( fn_);
|
||||
auto tpl = std::move( tpl_);
|
||||
boost::context::detail::do_invoke( fn, tpl);
|
||||
boost::context::detail::apply( fn, tpl);
|
||||
} catch ( fiber_interrupted const&) {
|
||||
}
|
||||
// terminate context
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/context/detail/invoke.hpp>
|
||||
#include <boost/context/detail/apply.hpp>
|
||||
|
||||
#include <boost/fiber/detail/config.hpp>
|
||||
#include <boost/fiber/future/detail/task_base.hpp>
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
void run( Args && ... args) override final {
|
||||
try {
|
||||
this->set_value(
|
||||
boost::context::detail::do_invoke(
|
||||
boost::context::detail::apply(
|
||||
fn_, std::make_tuple( std::forward< Args >( args) ... ) ) );
|
||||
} catch (...) {
|
||||
this->set_exception( std::current_exception() );
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
|
||||
void run( Args && ... args) override final {
|
||||
try {
|
||||
boost::context::detail::do_invoke(
|
||||
boost::context::detail::apply(
|
||||
fn_, std::make_tuple( std::forward< Args >( args) ... ) );
|
||||
this->set_value();
|
||||
} catch (...) {
|
||||
|
||||
Reference in New Issue
Block a user