Skip to content

Commit

Permalink
Local execution of direct actions is now actually performed directly
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jan 16, 2018
1 parent 26fa6ed commit 1dd0060
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions hpx/lcos/detail/async_implementations.hpp
Expand Up @@ -155,16 +155,9 @@ namespace hpx { namespace detail
};

template <typename Action>
bool can_invoke_locally()
HPX_CONSTEXPR bool can_invoke_locally()
{
return !traits::action_decorate_function<Action>::value &&
this_thread::get_priority() ==
static_cast<threads::thread_priority>(
traits::action_priority<Action>::value) &&
this_thread::get_stack_size() ==
threads::get_stack_size(
static_cast<threads::thread_stacksize>(
traits::action_stacksize<Action>::value));
return !traits::action_decorate_function<Action>::value;
}

template <typename Action>
Expand Down

0 comments on commit 1dd0060

Please sign in to comment.