C# 클래스 BF2Statistics.Net.SocketAsyncEventArgsPool

This class represents a thread safe pool of SocketAsyncEventArgs objects with the specifed capacity
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

공개 메소드들

메소드 설명
Pop ( ) : SocketAsyncEventArgs

Removes a SocketAsyncEventArgs instance from the pool.

Push ( SocketAsyncEventArgs item ) : void

Add a SocketAsyncEventArg instance to the pool.

SocketAsyncEventArgsPool ( int capacity ) : System

Initializes the object pool with the specified size

메소드 상세

Pop() 공개 메소드

Removes a SocketAsyncEventArgs instance from the pool.
public Pop ( ) : SocketAsyncEventArgs
리턴 System.Net.Sockets.SocketAsyncEventArgs

Push() 공개 메소드

Add a SocketAsyncEventArg instance to the pool.
public Push ( SocketAsyncEventArgs item ) : void
item System.Net.Sockets.SocketAsyncEventArgs A SocketAsyncEventArgs instance to add to the pool
리턴 void

SocketAsyncEventArgsPool() 공개 메소드

Initializes the object pool with the specified size
public SocketAsyncEventArgsPool ( int capacity ) : System
capacity int Initial capacity of objects
리턴 System