hpx/threading_base/annotated_function.hpp

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx

Functions

template<typename F>
constexpr F &&annotated_function(F &&f, char const* = nullptr)

Returns a function annotated with the given annotation.

Annotating includes setting the thread description per thread id.

Parameters
  • function:

template<typename F>
constexpr F &&annotated_function(F &&f, std::string const&)
namespace util

Functions

template<typename F>
constexpr decltype(auto) annotated_function(F &&f, char const *name = nullptr)
template<typename F>
constexpr decltype(auto) annotated_function(F &&f, std::string const &name)