diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2016-05-25 17:23:16 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2016-05-25 18:00:38 -0700 |
commit | 2f0a690f997b1516d1eff37268620ef6d6aacc4e (patch) | |
tree | f28a7a6795a1248304923d5eb40e2731c3c9dc17 | |
parent | e6d1de6054861b6247e2e597c8078f1ffbcaf823 (diff) |
name the threadpool threads before starting
-rw-r--r-- | src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs b/src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs index ab2cb3836a..4de543bef7 100644 --- a/src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs +++ b/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; } |