10 #ifndef K_API_PARALLEL_H
11 #define K_API_PARALLEL_H
76 #include <kApi/Threads/kParallel.x.h>
kStatus kParallel_ExecuteDirect(kParallelFx callback, kPointer receiver, kPointer content)
Directly invokes the specified callback without using the thread pool.
Opaque pointer to a kParallel transaction.
Represents a void pointer.
Declares the kParallel class.
kSize index
Index of current processing callback (0..count-1).
Definition: kParallel.h:24
Represents an unsigned integer that can store a pointer address.
#define kInlineFx(TYPE)
Inline method declaration helper.
Definition: kApiDef.h:26
kStatus kParallel_BeginExecute(kParallelFx callback, kPointer receiver, kPointer content, kParallelTransaction *transaction)
Begins asynchronously processing a dataset.
kPointer content
Shared data content, to be processed by callbacks.
Definition: kParallel.h:23
kSize kParallel_ThreadCount()
Reports the number of threads that will be used to process a parallel transaction.
Definition: kParallel.h:194
Arguments received by a kParallel data processing callback.
Definition: kParallel.h:21
kThreadPool kThreadPool_Default()
Returns the default thread pool.
kSize kThreadPool_Count(kThreadPool pool)
Returns the number of threads in the pool.
kStatus(kCall * kParallelFx)(kPointer receiver, kParallel sender, kParallelArgs *args)
kParallel data processing callback signature.
Definition: kParallel.h:67
Core Zen type declarations.
kSize kParallelArgs_End(const kParallelArgs *args, kSize start, kSize count)
Helper method that can be used to calculate the data end index within a kParallel callback...
kStatus kParallel_EndExecute(kParallelTransaction transaction)
Blocks until execution of the specified kParallel transaction is complete.
Represents an error code.
kSize count
Total number of processing callbacks (1 or more).
Definition: kParallel.h:25
#define kCall
kApi standard function calling convention.
Definition: kApiDef.h:15
kStatus kParallel_Execute(kParallelFx callback, kPointer receiver, kPointer content)
Synchronously processes a dataset.
kSize kParallelArgs_Begin(const kParallelArgs *args, kSize start, kSize count)
Helper method that can be used to calculate the data start index within a kParallel callback...