New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving coalescing registration to TUs #2076
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
|
||
#include <algorithm> | ||
#include <iterator> | ||
#include <numeric> | ||
#include <type_traits> | ||
#include <list> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,8 +47,8 @@ namespace hpx { namespace parcelset | |
#define HPX_REGISTER_COALESCING_COUNTERS(Action, coalescing_name) \ | ||
namespace hpx { namespace parcelset \ | ||
{ \ | ||
template<> \ | ||
inline char const* get_action_coalescing_name<Action>() \ | ||
template<> HPX_ALWAYS_EXPORT \ | ||
char const* get_action_coalescing_name<Action>() \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's your rationale for this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rationale is that we don't really have to have the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In addition, this change silenced the memory leak report I got. |
||
{ \ | ||
return coalescing_name; \ | ||
} \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use
std::is_void<Result>::value
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I will change that.