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

Can Geometry be Send? #534

Open
lnicola opened this issue Apr 30, 2024 · 2 comments
Open

Can Geometry be Send? #534

lnicola opened this issue Apr 30, 2024 · 2 comments

Comments

@lnicola
Copy link
Member

lnicola commented Apr 30, 2024

As asked by @ManeraKai in #522 (comment).

I don't see a reason for it to be !Send, but I might be missing something.

@ManeraKai
Copy link

This too: https://gdal.org/user/multithreading.html

Those restrictions apply to the C and C++ ABI, and all languages bindings (unless they would take special precautions to serialize calls)

Rust does have Mutex to serialize calls.

@lnicola
Copy link
Member Author

lnicola commented Apr 30, 2024

I'd rather not add a mutex to every geometry (or worse, use a global one). Not to mention that you could still bypass it by getting the native handle.

Anyway, I see no reason to do it.

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