1 //  Copyright (c) 2007-2014 Hartmut Kaiser
2 //  Copyright (c) 2011      Bryce Lelbach
3 //
4 //  Distributed under the Boost Software License, Version 1.0. (See accompanying
5 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 
7 /// \file get_thread_name.hpp
8 
9 #if !defined(HPX_RUNTIME_GET_THREAD_NAME_HPP)
10 #define HPX_RUNTIME_GET_THREAD_NAME_HPP
11 
12 #include <hpx/config.hpp>
13 #include <hpx/util/itt_notify.hpp>
14 
15 #include <string>
16 
17 namespace hpx
18 {
19     ///////////////////////////////////////////////////////////////////////////
20     /// \brief Return the name of the calling thread.
21     ///
22     /// This function returns the name of the calling thread. This name uniquely
23     /// identifies the thread in the context of HPX. If the function is called
24     /// while no HPX runtime system is active, the result will be "<unknown>".
25     HPX_API_EXPORT std::string get_thread_name();
26 }
27 
28 #endif
29