C# 클래스 TransportService.ThreadPool

ThreadPool implementation realized inside the TransportService. It is useful to have an indipendent version of the thread pool in this case because using the official .NET implementation the number of total "pool" peer is reduced by other elements; this is bad here because in this part of the project there are realtime requirements. This class is strictly coupled with the ThreadPoolObject class.
파일 보기 프로젝트 열기: zencoders/sambatyon

공개 메소드들

메소드 설명
GetNextThreadInPool ( ) : ThreadPoolObject

Get the first free thread in pool. If there are not free peers it returns a busy peer.

ThreadPool ( ) : System

Default constructor of the class.

ThreadPool ( int poolSize ) : System

Constructor of the class that initialize the pool to a specific size.

메소드 상세

GetNextThreadInPool() 공개 메소드

Get the first free thread in pool. If there are not free peers it returns a busy peer.
public GetNextThreadInPool ( ) : ThreadPoolObject
리턴 ThreadPoolObject

ThreadPool() 공개 메소드

Default constructor of the class.
public ThreadPool ( ) : System
리턴 System

ThreadPool() 공개 메소드

Constructor of the class that initialize the pool to a specific size.
public ThreadPool ( int poolSize ) : System
poolSize int Size of the pool
리턴 System