Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kParallel_Execute ( kParallelFx  callback,
kPointer  receiver,
kPointer  content 
)

Synchronously processes a dataset.

On multicore systems, this method is equivalent to calling kParallel_BeginExecute followed by kParallel_EndExecute. On unicore systems, this method directly invokes the specified callback.

This method is thread-safe.

Parameters
callbackData processing callback function.
receiverReceiver argument to be provided to callback.
contentContent to be provided to callback via kParallelArgs.content.
Returns
Operation status (kOK, or first error returned by a callback).