|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||Cocoa Threading||MBS MacFrameworks Plugin||8.0||Yes||No||No||Yes, macOS only||No|
Available in Mac OS X v10.5 and later.
The NSOperationQueue class manages a set of NSOperation objects in a priority queue and regulates their execution. Operations remain in the queue until they are explicitly cancelled or finish executing. An application may create multiple operation queues, with each queue running up to its designated maximum number of operations.
A specific NSOperation object can be in only one operation queue at a time. Operations within a single queue coordinate their execution order using both priority levels and inter-operation object dependencies. Operation objects in different queues can coordinate their execution order using dependencies, which are not queue-specific.
Inter-operation dependencies provide an absolute execution order for operations. An operation object is not considered ready to execute until all of its dependent operations have finished executing. For operations that are ready to execute, the operation queue always executes the one with the highest priority relative to the other ready operations. For details on how to set priority levels and dependencies, see NSOperation Class Reference.
You should never manually start an operation while it is sitting in an operation queue. Once added, an operation stays in its queue until it finishes executing or is cancelled.
- 4 properties
- 10 methods
- method addOperation(op as NSOperationMBS)
- method addOperations(ops() as NSOperationMBS, wait as boolean)
- method areAllOperationsFinished as boolean
- method cancelAllOperations
- method Constructor
- method isOneOperationExecuting as boolean
- method operation(index as UInt32) as NSOperationMBS
- method operationCount as Integer
- method operations as NSOperationMBS()
- method waitUntilAllOperationsAreFinished
- 2 shared methods
- const NSOperationQueueDefaultMaxConcurrentOperationCount=-1
This class has no sub classes.
Some examples which use this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MBS Xojo Chart Plugins