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

Method sleep_for

src/test/fuzz/util/threadinterrupt.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18bool FuzzedThreadInterrupt::sleep_for(Clock::duration)
19{
20 SetMockTime(ConsumeTime(m_fuzzed_data_provider)); // Time could go backwards.
21 return m_fuzzed_data_provider.ConsumeBool();
22}

Callers

nothing calls this directly

Calls 3

SetMockTimeFunction · 0.85
ConsumeTimeFunction · 0.85
ConsumeBoolMethod · 0.80

Tested by

no test coverage detected