C# Class Grpc.Core.Internal.GrpcThreadPool

Pool of threads polling on a set of completions queues.
ファイルを表示 Open project: grpc/grpc Class Usage Examples

Private Properties

Property Type Description
CreateAndStartThread Thread
CreateCompletionQueueList IReadOnlyCollection
RunHandlerLoop void

Public Methods

Method Description
GrpcThreadPool ( GrpcEnvironment environment, int poolSize, int completionQueueCount ) : System

Creates a thread pool threads polling on a set of completions queues.

Start ( ) : void
StopAsync ( ) : Task

Private Methods

Method Description
CreateAndStartThread ( int threadIndex, IProfiler optionalProfiler ) : Thread
CreateCompletionQueueList ( GrpcEnvironment environment, int completionQueueCount ) : IReadOnlyCollection
RunHandlerLoop ( CompletionQueueSafeHandle cq, IProfiler optionalProfiler ) : void

Body of the polling thread.

Method Details

GrpcThreadPool() public method

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.
return System

Start() public method

public Start ( ) : void
return void

StopAsync() public method

public StopAsync ( ) : Task
return Task