|
Zen API
|
| 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.
| 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. |