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 7 forks source link

Fix bugs with tasks #35

Closed computablee closed 1 year ago

computablee commented 1 year ago

This PR adds some more integration tests and fixes some bugs with nested task dependencies. In essence, if a task was created with a dependency on another task that had already completed (which, unless you are carrying dependencies through taskwaits, can only happen if both tasks are themselves spawned from a task), then the threads will starve and deadlock. This is now fixed.