grpc plugin: Use plugin_thread_create instead of pthread_create.
[collectd.git] / src / grpc.cc
index 0330aa0..a82c1ec 100644 (file)
@@ -438,7 +438,7 @@ extern "C" {
 
                server->Start();
                for (i = 0; i < workers_num; i++) {
-                       pthread_create(&workers[i], /* attr = */ NULL,
+                       plugin_thread_create(&workers[i], /* attr = */ NULL,
                                        worker_thread, server);
                }
                INFO("grpc: Started %zu workers", workers_num);