[Rcpp-devel] Using Rcpp::Function in parallel with TBB mutex lock & a reference.
Hi Kumar,
From a quick look you borrow the 'Worker' object from RcppParallel. But where
(as far as I recall) all posted examples of RcppParallel do _not_ put any R objects inside a Worker instance, you put some there. That violates the recommendation in Writing R Extensions. So I think the outcome you observe is as expected. Best, Dirk
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org