computablee / DotMP

A collection of powerful abstractions for parallel programming in .NET with an OpenMP-like API.
https://computablee.github.io/DotMP/
GNU Lesser General Public License v2.1
29 stars 8 forks source link

`Parallel.Single` does not function as intended #33

Closed computablee closed 1 year ago

computablee commented 1 year ago

Due to a rather large oversight by myself, Parallel.Single does not work as intended. Currently, it means that only a single thread executes a Single region. However, in OpenMP, a Single region marks that the region is only to be executed a single time. This needs fixing.