MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / PendingCall

Method PendingCall

CobaltFusion/Throttle.cpp:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void Throttle::PendingCall()
39{
40 m_fn();
41 std::lock_guard<std::mutex> lock(m_mutex);
42 if (m_lastCallTimePoint > m_lastScheduledCallTimePoint)
43 {
44 m_lastScheduledCallTimePoint = Clock::now();
45 m_executor.CallAt(Clock::now() + m_delta, [this] { PendingCall(); });
46 }
47 else
48 {
49 m_callPending = false;
50 }
51}
52
53} // namespace fusion

Callers

nothing calls this directly

Calls 1

CallAtMethod · 0.45

Tested by

no test coverage detected