ovs-thread: Make caller provide thread name when creating a thread.
[sliver-openvswitch.git] / vswitchd / system-stats.c
index 6c73933..7789787 100644 (file)
@@ -542,7 +542,8 @@ system_stats_enable(bool enable)
         ovs_mutex_lock(&mutex);
         if (enable) {
             if (!started) {
-                xpthread_create(NULL, NULL, system_stats_thread_func, NULL);
+                ovs_thread_create("system_stats",
+                                  system_stats_thread_func, NULL);
                 latch_init(&latch);
                 started = true;
             }