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 with the specified size
|
public Pop ( ) : |
||
return |
public Push ( |
||
item | A SocketAsyncEventArgs instance to add to the pool | |
return | void |
public SocketAsyncEventArgsPool ( int capacity ) : System | ||
capacity | int | Initial capacity of objects |
return | System |