We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't know if it would be technically possible, but it would be nice to be able to use something like Rcpp::checkUserInterrupt inside a thread.
Rcpp::checkUserInterrupt
The text was updated successfully, but these errors were encountered:
I'm currently using this approach (also to add a progress bar):
// worker structure RcppProgress::Progress *p; #if RCPP_PARALLEL_USE_TBB tbb::mutex m; #else tthread::mutex m; #endif // ... // this is inside the void operator()(std::size_t begin, std::size_t end) for(int i = begin; i < end; i++) { if (i % 100 == 0) { RcppThread::checkUserInterrupt(); m.lock(); p->increment(); m.unlock(); } }
Sorry, something went wrong.
No branches or pull requests
I don't know if it would be technically possible, but it would be nice to be able to use something like
Rcpp::checkUserInterrupt
inside a thread.The text was updated successfully, but these errors were encountered: