Bitcoin Core  27.99.0
P2P Digital Currency
threadnames.h
Go to the documentation of this file.
1 // Copyright (c) 2018-2019 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_UTIL_THREADNAMES_H
6 #define BITCOIN_UTIL_THREADNAMES_H
7 
8 #include <string>
9 
10 namespace util {
15 void ThreadRename(const std::string&);
16 
18 void ThreadSetInternalName(const std::string&);
19 
22 std::string ThreadGetInternalName();
23 
24 } // namespace util
25 
26 #endif // BITCOIN_UTIL_THREADNAMES_H
void ThreadRename(const std::string &)
Rename a thread both in terms of an internal (in-memory) name as well as its system thread name.
Definition: threadnames.cpp:57
std::string ThreadGetInternalName()
Get the thread's internal (in-memory) name; used e.g.
Definition: threadnames.cpp:47
void ThreadSetInternalName(const std::string &)
Set the internal (in-memory) name of the current thread only.
Definition: threadnames.cpp:63