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

Method sleep_for

src/util/threadinterrupt.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool CThreadInterrupt::sleep_for(Clock::duration rel_time)
37{
38 WAIT_LOCK(mut, lock);
39 return !cond.wait_for(lock, rel_time, [this]() { return flag.load(std::memory_order_acquire); });
40}

Callers 10

ThreadSocketHandlerMethod · 0.45
ThreadControlMethod · 0.45
ProcessPCPFunction · 0.45
ThreadMapPortFunction · 0.45
SocketHandlerMethod · 0.45
ThreadDNSAddressSeedMethod · 0.45
ThreadOpenConnectionsMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected