all pollers converted to single thread pool
[public/netxms.git] / src / server / core / bizservice.cpp
index 86f4494..bb090c6 100644 (file)
@@ -194,7 +194,17 @@ void BusinessService::lockForPolling()
 /**
  * A callback for poller threads
  */
-void BusinessService::poll(ClientSession *pSession, UINT32 dwRqId, int nPoller)
+void BusinessService::poll(PollerInfo *poller)
+{
+   poller->startExecution();
+   poll(NULL, 0, poller);
+   delete poller;
+}
+
+/**
+ * Status poll
+ */
+void BusinessService::poll(ClientSession *pSession, UINT32 dwRqId, PollerInfo *poller)
 {
        DbgPrintf(5, _T("Started polling of business service %s [%d]"), m_name, (int)m_id);
        m_lastPollTime = time(NULL);