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

Check user interrupt in geos_distance_indexed #40

Open
paleolimbot opened this issue Apr 3, 2021 · 3 comments
Open

Check user interrupt in geos_distance_indexed #40

paleolimbot opened this issue Apr 3, 2021 · 3 comments

Comments

@paleolimbot
Copy link
Owner

No description provided.

@paleolimbot
Copy link
Owner Author

(Reminding myself that this is hard to do because you can't longjmp from the callback)

@paleolimbot
Copy link
Owner Author

Punting for now, but one could check this by unwind-protecting or try/catch on R_CheckUserInterrupt()...the trick would be figuring out how to do it intermittently (maybe through a global variable). You can return 0 from the callback to stop processing and throw an error.

@paleolimbot
Copy link
Owner Author

This can be done much more easily in C++ using cpp11 infrastructure...for now it would need a C-level unwind protect I think.

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

1 participant