17 const QPointer<CDigestSignal> myself(
this);
19 if (!myself) {
return; }
27 if (m_inputsCount >= m_maxInputsPerDigest) { timerTimeout(); }
30 void CDigestSignal::timerTimeout()
37 void CDigestSignal::init(std::chrono::milliseconds maxDelay)
39 QObject::connect(&m_timer, &QTimer::timeout,
this, &CDigestSignal::timerTimeout);
40 m_timer.setSingleShot(
true);
41 m_timer.setInterval(maxDelay);
void digestSignal()
Send digest signal.
void inputSignal()
Received input signal, or manually trigger.
static bool isInThisThread(const QObject *toBeTested)
Is the current thread the object's thread?
Free functions in swift::misc.
auto singleShot(int msec, QObject *target, F &&task)
Starts a single-shot timer which will call a task in the thread of the given object when it times out...