diff options
author | Burt P <pburt0@gmail.com> | 2017-12-23 08:22:46 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-02-27 07:41:51 -0800 |
commit | 6a9f6819ae661f64c3c042d48f74d6419f63580e (patch) | |
tree | cf7e9a1dd37d260e20a4bbc10c8f21d6792bd195 /.gitignore | |
parent | e925b1b60e37040048c150e272dce181cdce8454 (diff) |
Fix benchmark_parallel_for() to use correct number of threads
If (end - start) / threads left a remainder, benchmark_parallel_for()
would start an extra thread for the leftover elements. Now, it has the
last thread process the few extra elements.
Added a note:
benchmark_parallel_for(): element [start] included, but [end] is excluded.
callback(): expected to processes elements [start] through [end] inclusive.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions