Grpc.Core.Internal.GrpcThreadPool.GrpcThreadPool C# (CSharp) Méthode

GrpcThreadPool() public méthode

Creates a thread pool threads polling on a set of completions queues.
public GrpcThreadPool ( GrpcEnvironment environment, int poolSize, int completionQueueCount ) : System
environment GrpcEnvironment Environment.
poolSize int Pool size.
completionQueueCount int Completion queue count.
Résultat System
        public GrpcThreadPool(GrpcEnvironment environment, int poolSize, int completionQueueCount)
        {
            this.environment = environment;
            this.poolSize = poolSize;
            this.completionQueueCount = completionQueueCount;
            GrpcPreconditions.CheckArgument(poolSize >= completionQueueCount,
                "Thread pool size cannot be smaller than the number of completion queues used.");
        }