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

Function UninterruptibleSleep

src/util/time.cpp:30–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static constexpr std::array<std::string_view, 12> months{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
29
30void UninterruptibleSleep(const std::chrono::microseconds& n) { std::this_thread::sleep_for(n); }
31
32static std::atomic<std::chrono::seconds> g_mock_time{}; //!< For testing
33std::atomic<bool> g_used_system_time{false};

Callers 7

HTTPReq_JSONRPCFunction · 0.85
ConnectAndCallRPCFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
stopFunction · 0.85

Calls

no outgoing calls

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68