Executes jobs sequentially on the provide thread pool.
More...
Executes jobs sequentially on the provide thread pool.
- Template Parameters
-
T | The type of the job data. |
Creates a new instance.
- Parameters
-
threadPool | The thread pool. |
void UnifiedAutomation.UaBase.JobQueue< T >.Clear |
( |
| ) |
|
Removes all outstanding jobs from the queue.
StatusCode UnifiedAutomation.UaBase.JobQueue< T >.TryEnqueue |
( |
T |
data, |
|
|
Action< T > |
callback |
|
) |
| |
Tries to enqueue a job to the queue.
If the job cannot be queued to the thread pool, the return value will be not good and the callback will not be called by the queue.
- Parameters
-
data | The data passed to the callback. |
callback | The callback to be executed. |
- Returns
- Returns StatusCodes.Good on success.
int UnifiedAutomation.UaBase.JobQueue< T >.MaxCount |
|
getset |
The max count of jobs to be queued.
Default value is Int32.MaxValue.
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaBase/Application/JobQueue.cs