On 11 March 2014 at 13:06, Hao Ye wrote:
| > Just accessing / setting data structures should work (but test first...),
| > RNGs is clearly asking for trouble.
| 
| FWIW, I've been able to get this working using Rcpp and C++11 threads. (but 
using native C++ data structures, of course)

Sure, just as there are CRAN packages doing OpenMP with RNGs.  But your threads,
be it pthreads or C++11 threads are not calling the RNG supplied by R, are they?

If so, I'd love to see an example / would invite you to post an Rcpp Gallery 
article.

Dirk

-- 
Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to