36typedef struct OperationInterface OperationInterface;
115struct OperationInterface {
120 ObjectInterface objectInterface;
204 void (*waitUntilFinished)(
const Operation *self);
POSIX Threads conditional variables.
Object is the root Class of The Objectively Class hierarchy.
void(* OperationFunction)(Operation *operation)
The function type for Operation execution.
OBJECTIVELY_EXPORT Class * _Operation(void)
void * ident
The identity type, similar to Objective-C id.
#define OBJECTIVELY_EXPORT
The runtime representation of a Class.
POSIX Threads conditional variables.
Object is the root Class of The Objectively Class hierarchy.
An abstraction for discrete units of work, or tasks.
bool isCancelled
true when this Operation has been cancelled, false otherwise.
bool isFinished
true when this Operation is finished, false otherwise.
Condition * condition
The Condition enabling waitUntilFinished.
OperationFunction function
The Operation function.
OperationInterface * interface
The interface.
Array * dependencies
Contains Operations which must finish before this one can start.
bool asynchronous
If true, this Operation will be expected to coordinate its own concurrency and internal state managem...
Object object
The superclass.
bool isExecuting
true when this Operation is executing, false otherwise.