Bitcoin Core  0.19.99
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(std::string&&);
16 
18 void ThreadSetInternalName(std::string&&);
19 
22 const std::string& ThreadGetInternalName();
23 
24 } // namespace util
25 
26 #endif // BITCOIN_UTIL_THREADNAMES_H
Definition: settings.cpp:9
void ThreadRename(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
void ThreadSetInternalName(std::string &&)
Set the internal (in-memory) name of the current thread only.
Definition: threadnames.cpp:63
const std::string & ThreadGetInternalName()
Get the thread&#39;s internal (in-memory) name; used e.g.
Definition: threadnames.cpp:53