java-romp / jromp

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

Add possibility to pass an Operation to update method of Variable #29

Closed scastd closed 1 month ago

scastd commented 1 month ago

Describe the feature

Add a new method in the Variable class that allows to pass an Operation as parameter:

void update(Operation<T> operation);

So the usages can be like this:

vars.<Integer>get("varName").update(Operations.add(1));

Additional information

Final checks