This class enables to manage several tasks (transforms, codecs) and maintain the progress of their overall completion as well as other events.
Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class MultiTaskManager _ Inherits LockableObject _ Implements ISyncHandler |
| C# |
|---|
public class MultiTaskManager : LockableObject, ISyncHandler |
| Visual C++ |
|---|
public ref class MultiTaskManager : public LockableObject, ISyncHandler |
Remarks
This class provides a number of members related to task managing. Under the task we will understand any class implementing the ISyncHandler interface, such as transforms (inherited from the BitmapTransform), readers (inherited from the FormatReader), writers (inherited from the FormatWriter), etc.
The main purpose of this class is to give a possibility to track the progress of completion of several tasks registered with this manager. You create this manager, pass to the constructor tasks and assign a difficulty to each of them (weight of each task in the whole process, so that you could have the progress indicator to run evenly for tasks with different speed), and run each task.
Inheritance Hierarchy
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.