Bitcoin Core
27.99.0
P2P Digital Currency
|
Classes | |
struct | Overloaded |
Overloaded helper for std::visit. More... | |
struct | Error |
class | Result |
class | SignalInterrupt |
Helper class that manages an interrupt flag, and allows a thread or signal to interrupt another thread. More... | |
class | TaskRunnerInterface |
class | ImmediateTaskRunner |
Enumerations | |
enum class | LockResult { Success , ErrorWrite , ErrorLock } |
Functions | |
void | Xor (Span< std::byte > write, Span< const std::byte > key, size_t key_offset=0) |
template<typename T > | |
T * | AnyPtr (const std::any &any) noexcept |
Helper function to access the contained object of a std::any instance. More... | |
LockResult | LockDirectory (const fs::path &directory, const fs::path &lockfile_name, bool probe_only) |
template<typename Tdst , typename Tsrc > | |
void | insert (Tdst &dst, const Tsrc &src) |
Simplification of std insertion. More... | |
template<typename TsetT , typename Tsrc > | |
void | insert (std::set< TsetT > &dst, const Tsrc &src) |
template<class... Ts> | |
Overloaded (Ts...) -> Overloaded< Ts... > | |
Explicit deduction guide (not needed after clang-17) More... | |
template<typename T > | |
bilingual_str | ErrorString (const Result< T > &result) |
void | TraceThread (std::string_view thread_name, std::function< void()> thread_func) |
A wrapper for do-something-once thread functions. More... | |
void | ThreadRename (std::string &&) |
Rename a thread both in terms of an internal (in-memory) name as well as its system thread name. More... | |
void | ThreadSetInternalName (std::string &&) |
Set the internal (in-memory) name of the current thread only. More... | |
const std::string & | ThreadGetInternalName () |
Get the thread's internal (in-memory) name; used e.g. More... | |
|
strong |
Enumerator | |
---|---|
Success | |
ErrorWrite | |
ErrorLock |
Definition at line 39 of file fs_helpers.h.
|
noexcept |
bilingual_str util::ErrorString | ( | const Result< T > & | result | ) |
|
inline |
|
inline |
LockResult util::LockDirectory | ( | const fs::path & | directory, |
const fs::path & | lockfile_name, | ||
bool | probe_only | ||
) |
Definition at line 54 of file fs_helpers.cpp.
util::Overloaded | ( | Ts... | ) | -> Overloaded< Ts... > |
Explicit deduction guide (not needed after clang-17)
const std::string & util::ThreadGetInternalName | ( | ) |
Get the thread's internal (in-memory) name; used e.g.
for identification in logging.
Definition at line 55 of file threadnames.cpp.
void util::ThreadRename | ( | std::string && | name | ) |
Rename a thread both in terms of an internal (in-memory) name as well as its system thread name.
Definition at line 59 of file threadnames.cpp.
void util::ThreadSetInternalName | ( | std::string && | name | ) |
Set the internal (in-memory) name of the current thread only.
Definition at line 65 of file threadnames.cpp.
void util::TraceThread | ( | std::string_view | thread_name, |
std::function< void()> | thread_func | ||
) |
A wrapper for do-something-once thread functions.
Definition at line 16 of file thread.cpp.