MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SubmitErrorString

Function SubmitErrorString

src/util/threadpool.h:285–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283};
284
285constexpr std::string_view SubmitErrorString(const ThreadPool::SubmitError err) noexcept {
286 switch (err) {
287 case ThreadPool::SubmitError::Inactive:
288 return "No active workers";
289 case ThreadPool::SubmitError::Interrupted:
290 return "Interrupted";
291 }
292 Assume(false); // Unreachable
293 return "Unknown error";
294}
295
296#endif // BITCOIN_UTIL_THREADPOOL_H

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68