Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kParallel_BeginExecute | ( | kParallelFx | callback,
|  | kPointer | receiver,
|  | kPointer | content,
|  | kParallelTransaction * | transaction
| ) |  |

Begins asynchronously processing a dataset.

This function returns immediately, providing a transaction handle to represent the in-progress data processing. The kParallel_EndExecute function must be used to wait for execution to complete. Failure to call kParallel_EndExecute will result in leaks.

This method is thread-safe.

Parameters

  callback | Data processing callback function.
  receiver | Receiver argument to be provided to callback.
  content | Content to be provided to callback via kParallelArgs.content.
  transaction | Receives transaction handle, which must be passed to kParallel_EndExecute.

Returns
  Operation status.