java-romp / jromp

Java Runtime implementation of OpenMP.
https://java-romp.github.io/jromp/
MIT License
5 stars 0 forks source link

Add new method to set the variables for the whole parallel construct #33

Closed scastd closed 2 months ago

scastd commented 2 months ago

Describe the feature

To avoid passing a Variables instance to every method, a new one could be created to store them for all the chained calls, as follows:

Parallel.withThreads(4)
        .withVariables(variables)
        ...
        .join();

Additional information

Final checks