name the threadpool threads before starting

pull/6712/head
Jan Tattermusch 9 years ago
parent e6d1de6054
commit 2f0a690f99
  1. 3
      src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs

@ -120,8 +120,9 @@ namespace Grpc.Core.Internal
var thread = new Thread(new ThreadStart(() => RunHandlerLoop(cq)));
thread.IsBackground = false;
thread.Start();
thread.Name = string.Format("grpc {0} (cq {1})", threadIndex, cqIndex);
thread.Start();
return thread;
}

Loading…
Cancel
Save