aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-05-25 17:23:16 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-05-25 18:00:38 -0700
commit2f0a690f997b1516d1eff37268620ef6d6aacc4e (patch)
treef28a7a6795a1248304923d5eb40e2731c3c9dc17 /src/csharp
parente6d1de6054861b6247e2e597c8078f1ffbcaf823 (diff)
name the threadpool threads before starting
Diffstat (limited to 'src/csharp')
-rw-r--r--src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs3
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;
}