From: Sebastian Harl Date: Fri, 6 May 2016 21:49:01 +0000 (+0200) Subject: grpc plugin: Use plugin_thread_create instead of pthread_create. X-Git-Tag: collectd-5.6.0~246^2~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9d6e008daa9e455db6bba843c3796b7c6f0adf0c;p=collectd.git grpc plugin: Use plugin_thread_create instead of pthread_create. --- diff --git a/src/grpc.cc b/src/grpc.cc index 0330aa0d..a82c1ec4 100644 --- a/src/grpc.cc +++ b/src/grpc.cc @@ -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);