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

Updated Lock API (Issue #43) #61

Closed HarryHeres closed 11 months ago

HarryHeres commented 11 months ago

I have refactored the Lock.cs Class to access internal locking by instance, rather than in a static way. I have also updated the method’s documentation and taken a look into the README, but didn’t seem to me that it needed any changes.

Testing method Locks_work was also refactored to reflect new Lock API functionality. All tests passed (.NET 6.0 and .NET 7.0).

image
computablee commented 11 months ago

The linter failed, but it's failing in untouched files. This is expected. Accepted and merging into main.