Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPA parallel function encapsulation problem #2359

Open
avancinirodrigo opened this issue Aug 27, 2020 · 0 comments
Open

HPA parallel function encapsulation problem #2359

avancinirodrigo opened this issue Aug 27, 2020 · 0 comments

Comments

@avancinirodrigo
Copy link
Contributor

It is not possible to encapsulate HPA:parallel() method on Lua.
The parallel() receive parameter like this:

hpa:parallel("function_name(p1)", p1) 

The parameters can vary:

hpa:parallel("function_name(p1, p2)", p1, p2) 

That kind of argument cannot be handled on Lua, only in C++.

A possible solution is pass a table with the parameters, as:

hpa:parallel("function_name(p1, p2)", {p1, p2}) 

For that, it is necessary to adapt it on C++.

This issue blocks #2354.

@tiagogsc
@pedro-andrade-inpe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant