C# Class BF2Statistics.Net.SocketAsyncEventArgsPool

This class represents a thread safe pool of SocketAsyncEventArgs objects with the specifed capacity
Afficher le fichier Open project: BF2Statistics/ControlCenter Class Usage Examples

Méthodes publiques

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

Method Details

Pop() public méthode

Removes a SocketAsyncEventArgs instance from the pool.
public Pop ( ) : SocketAsyncEventArgs
Résultat System.Net.Sockets.SocketAsyncEventArgs

Push() public méthode

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
Résultat void

SocketAsyncEventArgsPool() public méthode

Initializes the object pool with the specified size
public SocketAsyncEventArgsPool ( int capacity ) : System
capacity int Initial capacity of objects
Résultat System