ENH: Adjustments and enhancements to `threading.h`
- Adjust the
NoOfThreadsclass so that, if a value is not provided, or a value<=0is provided, it will be set to a value read from the${FSL_NUM_THREADS}environment variable, or 1 if that variable is not set. - Add new
parforandapplyfunctions for trivially parallelisable tasks. These functions perform essentially the same role asstd::for_eaachandstd::transform, but allow explicit control over the number of threads.
Edited by Paul McCarthy