Bitcoin ABC 0.30.7
P2P Digital Currency
threadnames.h
Go to the documentation of this file.
1// Copyright (c) 2018 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
10namespace util {
15void ThreadRename(std::string &&);
16
18void ThreadSetInternalName(std::string &&);
19
22const std::string &ThreadGetInternalName();
23
24} // namespace util
25
26#endif // BITCOIN_UTIL_THREADNAMES_H
Definition: any.h:10
void ThreadSetInternalName(std::string &&)
Set the internal (in-memory) name of the current thread only.
Definition: threadnames.cpp:53
const std::string & ThreadGetInternalName()
Get the thread's internal (in-memory) name; used e.g.
Definition: threadnames.cpp:39
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:48