MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / begin

Method begin

app/src/DataModel/Scripting/JsWatchdogThread.cpp:61–71  ·  view source on GitHub ↗

* @brief Creates and starts the poll timer on the worker thread. */

Source from the content-addressed store, hash-verified

59 * @brief Creates and starts the poll timer on the worker thread.
60 */
61void DataModel::JsWatchdogWorker::begin()
62{
63 Q_ASSERT(QThread::currentThread() == thread());
64 if (m_timer)
65 return;
66
67 m_timer = new QTimer(this);
68 m_timer->setInterval(kPollIntervalMs);
69 connect(m_timer, &QTimer::timeout, this, &JsWatchdogWorker::onTick);
70 m_timer->start();
71}
72
73/**
74 * @brief Stops and releases the poll timer on the worker thread.

Callers 15

assignMethod · 0.80
extractMethod · 0.80
entryInfoListMethod · 0.80
TEST_FFunction · 0.80
OnDropFilesMethod · 0.80
operator()Method · 0.80
AddCg3Method · 0.80
GetSampleQueueMethod · 0.80
CreateChannelMethod · 0.80
GetChannelMethod · 0.80
GetMasterChannelMethod · 0.80

Calls 1

startMethod · 0.45

Tested by 2

extractMethod · 0.64
TEST_FFunction · 0.64