Merge branch 'fix/multithreading-temp' into 'master'

Fix multi threading by using const ref to function

See merge request !3318

(cherry picked from commit 746a1b39)

09fa8e6c [parallel] Fix multi threading by using  const ref to function
6 jobs for !3319 with cherry-pick-746a1b39 in 47 seconds (queued for 2 seconds)
latest merge request