Oovaide Index
Background Task Queue
Last updated: March 10, 2015
The Oovaide project has many types of multitasking that must be performed that
are described in OovaideMultitasking.
The queue described here copies from ThreadedWorkWaitQueue.
This queue provides a single thread for processing background queued items.
The following functions are available to the client:
- addTask
- stopAndWaitForCompletion
- isQueueBusy
Each item is processed on the background thread from the processItem function.
For long running tasks, the function called from processItem can query the
continueProcessingItem function so that long running tasks can abort.
There is a class in OovProcess.h named OovTaskStatusListener that can be called from
the processItem function. This status can be buffered by the GUI so that the
BackgroundDialog class in Gui.h can display the status from the GUI idle processing.