MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / process

Method process

lib/TopicHandlerService/src/TopicHandlerService.cpp:92–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void TopicHandlerService::process()
93{
94 if (true == m_isStarted)
95 {
96 processAllHandlers();
97
98 if ((true == m_onChangeTimer.isTimerRunning()) &&
99 (true == m_onChangeTimer.isTimeout()))
100 {
101 bool forceUpdate = false;
102
103 if (0U < m_updateCounter)
104 {
105 --m_updateCounter;
106 }
107
108 if (0U == m_updateCounter)
109 {
110 forceUpdate = true;
111 m_updateCounter = UPDATE_COUNTER_VALUE;
112 }
113
114 processOnChange(forceUpdate);
115
116 m_onChangeTimer.restart();
117 }
118 }
119}
120
121void TopicHandlerService::registerTopics(const String& deviceId, const String& entityId, IPluginMaintenance* plugin)
122{

Callers 1

processAllHandlersMethod · 0.45

Calls 3

isTimerRunningMethod · 0.80
isTimeoutMethod · 0.80
restartMethod · 0.80

Tested by

no test coverage detected