C# Class Grpc.Core.Internal.GrpcThreadPool

Pool of threads polling on a set of completions queues.
Afficher le fichier Open project: grpc/grpc Class Usage Examples

Private Properties

Свойство Type Description
CreateAndStartThread Thread
CreateCompletionQueueList IReadOnlyCollection
RunHandlerLoop void

Méthodes publiques

Méthode 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

Méthode 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 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

Start() public méthode

public Start ( ) : void
Résultat void

StopAsync() public méthode

public StopAsync ( ) : Task
Résultat Task