Replace glib threadpool usage with a 'dumb' thread implementation.
[platform/upstream/iotivity.git] / resource / csdk / connectivity / src / ethernet_adapter / linux / caethernetnwmonitor.c
index ea5bb42..c6220f2 100644 (file)
@@ -98,9 +98,9 @@ static char *g_ethernetSubnetMask = NULL;
 
 /**
  * @var g_threadPool
- * @brief ThreadPool for storing u_thread_pool_t handle passed from adapter
+ * @brief ThreadPool for storing ca_thread_pool_t handle passed from adapter
  */
-static u_thread_pool_t g_threadPool = NULL;
+static ca_thread_pool_t g_threadPool = NULL;
 
 /**
  * @var g_stopNetworkMonitor
@@ -123,7 +123,7 @@ static void CAEthernetGetInterfaceInformation(const char *interfacePrefix,
 
 static void CANetworkMonitorThread(void *threadData);
 
-CAResult_t CAEthernetInitializeNetworkMonitor(const u_thread_pool_t threadPool)
+CAResult_t CAEthernetInitializeNetworkMonitor(const ca_thread_pool_t threadPool)
 {
     OIC_LOG(DEBUG, ETHERNET_MONITOR_TAG, "IN");
 
@@ -190,7 +190,7 @@ CAResult_t CAEthernetStartNetworkMonitor(void)
         return CA_STATUS_FAILED;
     }
 
-    if (CA_STATUS_OK != u_thread_pool_add_task(g_threadPool, (void *) CANetworkMonitorThread,
+    if (CA_STATUS_OK != ca_thread_pool_add_task(g_threadPool, (void *) CANetworkMonitorThread,
             (void *)NULL))
     {
         OIC_LOG(ERROR, ETHERNET_MONITOR_TAG, "[ThreadPool] thread_pool_add_task failed!");