Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kSize kParallel_ThreadCount | ( |  | ) |

Reports the number of threads that will be used to process a parallel transaction.

The number of threads used to process a parallel transaction can be determined from within a parallel processing callback by examining the kParallelArgs 'count' field. However, if an algorithm requires this information prior to calling kParallel_Execute or kParallel_BeginExecute, (e.g., to preallocate temporary data structures), the kParallel_ThreadCount method can be used instead.

This method is thread-safe.

Returns
  Number of threads that will be used to process a parallel transaction.