8000 Thread safety · Issue #34 · CD3/libInterpolate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Thread safety #34

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 ter 8000 ms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sidy3d opened this issue Jun 5, 2025 · 2 comments
Closed

Thread safety #34

sidy3d opened this issue Jun 5, 2025 · 2 comments

Comments

@sidy3d
Copy link
sidy3d commented Jun 5, 2025

Hi,

Thank you for this fantastic library.

I have a large amount of data to process. Does this library thread safe in the sense that I can launch multiple queries from different threads?

Thanks,

@CD3
Copy link
Owner
CD3 commented Jun 5, 2025

Thanks you. It should be after the interpolator is constructed. The data to interpolate is copied internally, then each interpolator can pre-compute some additional parameters that depend on data that will be shared by calls to the operator(...) function but these should all be read only. Any intermediate values computed during the interpolation should be written to local variables.

It does not store the index to the previously used data points to speed up the search during the next call.

But... I don't do a ton of threaded code and I have not tested it for this, so its possible.

@sidy3d
Copy link
Author
sidy3d commented Jun 6, 2025

Thanks for the confirmation. I will close the issue.

@sidy3d sidy3d closed this as completed Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0