MCPcopy Create free account
hub / github.com/ElementsProject/elements / UninterruptibleSleep

Function UninterruptibleSleep

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

Source from the content-addressed store, hash-verified

20#include <tinyformat.h>
21
22void UninterruptibleSleep(const std::chrono::microseconds& n) { std::this_thread::sleep_for(n); }
23
24static std::atomic<int64_t> nMockTime(0); //!< For testing
25

Callers 12

HTTPReq_JSONRPCFunction · 0.85
ConnectAndCallRPCFunction · 0.85
MainchainRPCCheckFunction · 0.85
RewriteMethod · 0.85
BackupMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
stopFunction · 0.85

Calls

no outgoing calls

Tested by 6

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68