36typedef struct OperationInterface OperationInterface;
115struct OperationInterface {
120 ObjectInterface objectInterface;
POSIX Threads conditional variables.
static MutableData * data(void)
Object is the root Class of The Objectively Class hierarchy.
static void waitUntilFinished(const Operation *self)
static _Bool isReady(const Operation *self)
static void start(Operation *self)
static void cancel(Operation *self)
static void addDependency(Operation *self, Operation *dependency)
void(* OperationFunction)(Operation *operation)
The function type for Operation execution.
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.
Condition * condition
The Condition enabling waitUntilFinished.
_Bool isCancelled
true when this Operation has been cancelled, false otherwise.
OperationFunction function
The Operation function.
OperationInterface * interface
The interface.
MutableArray * dependencies
Contains Operations which must finish before this one can start.
Object object
The superclass.
Class * _Operation(void)
The Operation archetype.
_Bool isExecuting
true when this Operation is executing, false otherwise.
_Bool asynchronous
If true, this Operation will be expected to coordinate its own concurrency and internal state managem...
_Bool isFinished
true when this Operation is finished, false otherwise.