Pool of threads polling on a set of completions queues.
コード例 #1
0
ファイル: GrpcEnvironment.cs プロジェクト: jwatt/kythe
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcLog.RedirectNativeLogs(Console.Error);
     grpcsharp_init();
     threadPool = new GrpcThreadPool(THREAD_POOL_SIZE);
     threadPool.Start();
     // TODO: use proper logging here
     Console.WriteLine("GRPC initialized.");
 }
コード例 #2
0
ファイル: GrpcEnvironment.cs プロジェクト: rootusr/grpc
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     NativeLogRedirector.Redirect();
     grpcsharp_init();
     completionRegistry = new CompletionRegistry(this);
     threadPool = new GrpcThreadPool(this, THREAD_POOL_SIZE);
     threadPool.Start();
     // TODO: use proper logging here
     Logger.Info("gRPC initialized.");
 }
コード例 #3
0
ファイル: GrpcEnvironment.cs プロジェクト: leifurhauks/grpc
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcNativeInit();
     threadPool = new GrpcThreadPool(this, GetThreadPoolSizeOrDefault(), GetCompletionQueueCountOrDefault());
     threadPool.Start();
 }
コード例 #4
0
ファイル: GrpcEnvironment.cs プロジェクト: rwightman/grpc
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcNativeInit();
     completionRegistry = new CompletionRegistry(this);
     threadPool = new GrpcThreadPool(this, THREAD_POOL_SIZE);
     threadPool.Start();
 }
コード例 #5
0
ファイル: GrpcEnvironment.cs プロジェクト: cj525/grpc
        /// <summary>
        /// Creates gRPC environment.
        /// </summary>
        private GrpcEnvironment()
        {
            NativeLogRedirector.Redirect();
            GrpcNativeInit();
            completionRegistry = new CompletionRegistry(this);
            threadPool = new GrpcThreadPool(this, _threadPoolSize);
            threadPool.Start();

        }