![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Represents an enqueue agent that uses a round-robin scheduling strategy for task execution. More...
Public Member Functions | |
RoundRobinEnqueueAgent (IStatisticsCounterChange counter, string name, int count) | |
Initializes a new instance of the RoundRobinEnqueueAgent class. | |
ISingleTask | Enqueue (Action action) |
Enqueues an action to be executed. | |
void | Enqueue (SingleTask task) |
Enqueues a single task to be executed using round-robin scheduling. | |
void | Start () |
Starts all child threads for processing enqueued tasks. | |
void | Dispose () |
Disposes of all child threads and releases any resources. | |
![]() | |
![]() |
Represents an enqueue agent that uses a round-robin scheduling strategy for task execution.
XmobiTea.Threading.RoundRobinEnqueueAgent.RoundRobinEnqueueAgent | ( | IStatisticsCounterChange | counter, |
string | name, | ||
int | count ) |
Initializes a new instance of the RoundRobinEnqueueAgent class.
counter | The counter for tracking enqueue statistics. |
name | The name of the agent. |
count | The number of child threads to use. |
ISingleTask XmobiTea.Threading.RoundRobinEnqueueAgent.Enqueue | ( | Action | action | ) |
Enqueues an action to be executed.
action | The action to be enqueued. |
Implements XmobiTea.Threading.IEnqueue.
void XmobiTea.Threading.RoundRobinEnqueueAgent.Enqueue | ( | SingleTask | task | ) |
Enqueues a single task to be executed using round-robin scheduling.
task | The task to be enqueued. |
Implements XmobiTea.Threading.Agent.IEnqueueInternal.