MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / operator()

Method operator()

CobaltFusion/Throttle.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void Throttle::operator()()
27{
28 std::lock_guard<std::mutex> lock(m_mutex);
29 m_lastCallTimePoint = Clock::now();
30 if (!m_callPending)
31 {
32 m_lastScheduledCallTimePoint = m_lastCallTimePoint;
33 m_callPending = true;
34 m_executor.CallAt(Clock::now() + m_delta, [this] { PendingCall(); });
35 }
36}
37
38void Throttle::PendingCall()
39{

Callers

nothing calls this directly

Calls 1

CallAtMethod · 0.45

Tested by

no test coverage detected