Dear list,

I was wondering what solutions there were with for letting the user interrupt (lengthy) computations done in external libraries. When writing one's own function there's checkUserInterrupt() but what if everything happens in an external library that can't be directly modified? I'm guessing one option is to spin off a separate thread for the computation while monitoring for interrupts on the main thread. Are there any examples of code doing this? Is there a better way? I'd love to hear your thoughts.

Thanks

Simon
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to