Closed davidhjp01 closed 2 years ago
thread_count
should be written in pascalCase to be in-line with the existing parameter. Other than that, LGTM.
One more thing. You'd expect that a threadCount
of 1 means "run on the main thread". That's not what happens here.
Thanks updated accordingly.
Just added a small modification to pass
thread_count
via ctor of fixed_stepalgorithm. When `threads.empty()`, thread_pool executes the function directly without queuing.