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
Thread safety question #17
Comments
In general you should use |
As you probably observed we don't have a specialization of RVector for The problem with using Rcpp types as Dirk pointed out is that the Rcpp API On Wed, Nov 11, 2015 at 6:53 AM, Dirk Eddelbuettel <notifications@github.com
|
@eddelbuettel , @jjallaire, thank you very much for clarification. Actually I already crashed R with code above. I'm not C++ or R internals expert, but will have a look. |
As soon as you don't use references for Rcpp types, you are not safe. If you use references, it all depends on what you do with them. |
Is is safe to not use
RVector<T>
in threads, but use regular Rcpp types? Consider following word-count example (I need to useListOf<CharacterVector>
as an input ), I tested it OS X and linux and have no problems.And corresponding export:
The text was updated successfully, but these errors were encountered: