Method | Description | |
---|---|---|
Pop ( ) : |
Removes a SocketAsyncEventArgs instance from the pool
|
|
Push ( |
Add a SocketAsyncEventArg instance to the pool
|
|
SocketAsyncEventArgsPool ( int capacity ) : System |
Initializes the object pool to the specified size
|
public Pop ( ) : |
||
return |
public Push ( |
||
item | The SocketAsyncEventArgs instance to add to the pool | |
return | void |
public SocketAsyncEventArgsPool ( int capacity ) : System | ||
capacity | int | The maximum number of SocketAsyncEventArgs objects the pool can hold |
return | System |