grpc plugin: Use plugin_thread_create instead of pthread_create.
authorSebastian Harl <sh@tokkee.org>
Fri, 6 May 2016 21:49:01 +0000 (23:49 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 30 May 2016 21:44:19 +0000 (23:44 +0200)
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);