Skip to content

Commit

Permalink
More safe-guards for util::thread_description
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Apr 23, 2017
1 parent 3442f09 commit da3fd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpx/util/thread_description.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ namespace hpx { namespace util
thread_description(char const* desc) HPX_NOEXCEPT
: type_(data_type_description)
{
data_.desc_ = desc;
data_.desc_ = desc ? desc : "<unknown>";
}

#if HPX_HAVE_ITTNOTIFY != 0 && !defined(HPX_HAVE_APEX)
thread_description(char const* desc,
util::itt::string_handle const& sh) HPX_NOEXCEPT
: type_(data_type_description)
{
data_.desc_ = desc;
data_.desc_ = desc ? desc : "<unknown>";
desc_itt_ = sh;
}
#endif
Expand Down

0 comments on commit da3fd17

Please sign in to comment.