Skip to content

Commit

Permalink
Fixing HPX tool complaints.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Mar 20, 2018
1 parent 182412f commit 1a30539
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hpx/util/annotated_function.hpp
Expand Up @@ -75,14 +75,14 @@ namespace hpx { namespace util
explicit annotate_function(char const* name)
{
threads::set_self_apex_data(
apex_update_task(threads::get_self_apex_data(),
apex_update_task(threads::get_self_apex_data(),
name));
}
template <typename F>
explicit annotate_function(F && f)
{
threads::set_self_apex_data(
apex_update_task(threads::get_self_apex_data(),
apex_update_task(threads::get_self_apex_data(),
hpx::util::thread_description(f)));
}
};
Expand Down
8 changes: 4 additions & 4 deletions hpx/util/apex.hpp
Expand Up @@ -38,7 +38,7 @@ namespace hpx { namespace util
inline void * apex_new_task(
thread_description const& description)
{
if (description.kind() ==
if (description.kind() ==
thread_description::data_type_description) {
return (void*)apex::new_task(description.get_description());
} else {
Expand All @@ -51,14 +51,14 @@ namespace hpx { namespace util
return (void*)apex::new_task(name);
}

inline void * apex_update_task(void * wrapper,
inline void * apex_update_task(void * wrapper,
thread_description const& description)
{
if (description.kind() == thread_description::data_type_description) {
return (void*)apex::update_task((apex::task_wrapper*)wrapper,
return (void*)apex::update_task((apex::task_wrapper*)wrapper,
description.get_description());
} else {
return (void*)apex::update_task((apex::task_wrapper*)wrapper,
return (void*)apex::update_task((apex::task_wrapper*)wrapper,
description.get_address());
}
}
Expand Down

0 comments on commit 1a30539

Please sign in to comment.