[This is preliminary documentation and is subject to change.]
Assembly: cai-nmbuild (in cai-nmbuild.dll) Version: 0.4.0.0 (0.4.0.0)
|C#||Visual Basic||Visual C++|
public sealed class BuildTaskProcessor
Public NotInheritable Class BuildTaskProcessor
public ref class BuildTaskProcessor sealed
XNA Framework Only
.NET Compact Framework Only
Aborts the processor.
A standard value for high priority tasks.
The length of time the processor will idle when there are no tasks to process. [Units: Milliseconds] [Limit: >= 1]
The processor is running.
A standard value for low priority tasks.
The maximum permitted active tasks before new tasks are queued.
A standard value for medium priority tasks.
Queues a task to be run.
Runs the processor.
The length of time the processor will idle when there are tasks being processed. [Units: Milliseconds] [Limit: >= 1]
The number of active and queued tasks.
The expected use case is that the processor is run on a separate thread. Clients then create and pass it tasks to be run. The processor will run tasks concurrently up to its maximum allowed, then queue remaining tasks for later.
Individual tasks are aborted via the Abort(String) method. The processor will clear the task from its queue when it encounters the task for processing, so the task count will not decrement immediately.
Warning: A zombie worker thread will result if a task does not meet its IBuildTask obligation by throwing an exception in its Run()()()() method. The worker thread will become un-usable for new tasks.