Skip to content

Commit

Permalink
For packaged continuations, check to see if the function is annotated
Browse files Browse the repository at this point in the history
before creating the thread_description.
  • Loading branch information
khuck committed Dec 3, 2019
1 parent a965665 commit 37de97f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions hpx/lcos/local/packaged_continuation.hpp
Expand Up @@ -376,8 +376,12 @@ namespace hpx { namespace lcos { namespace detail
}

hpx::intrusive_ptr<continuation> this_(this);
const char * annotation =
traits::get_function_annotation<typename hpx::util::decay<F>::type>::call(f_);
hpx::util::thread_description desc(
"hpx::parallel::execution::parallel_executor::post");
annotation == nullptr ?
"hpx::parallel::execution::parallel_executor::post" :
annotation);

This comment has been minimized.

Copy link
@msimberg

msimberg Dec 3, 2019

Contributor

I think

hpx::util::thread_description desc(f_, "hpx::parallel::execution::parallel_executor::post");

will do the exact same thing.


parallel::execution::detail::post_policy_dispatch<
hpx::launch::async_policy
Expand Down Expand Up @@ -422,8 +426,12 @@ namespace hpx { namespace lcos { namespace detail
}

hpx::intrusive_ptr<continuation> this_(this);
const char * annotation =
traits::get_function_annotation<typename hpx::util::decay<F>::type>::call(f_);
hpx::util::thread_description desc(
"hpx::parallel::execution::parallel_executor::post");
annotation == nullptr ?
"hpx::parallel::execution::parallel_executor::post" :
annotation);

parallel::execution::detail::post_policy_dispatch<
hpx::launch::async_policy
Expand Down

0 comments on commit 37de97f

Please sign in to comment.