COMPMID-959 Fix race condition on info.thread_id in OpenMP scheduler (#399)

Fix from Github

Additionally refactor improper use of OpenMP's worksharing
construct (for).

Change-Id: Ia88b8d8793ba992f8009497aa9ee83b860f2ebb2
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/126266
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
1 file changed