[Rcpp-devel] Using Rcpp::Function in parallel with TBB mutex lock & a reference.
Dirk Eddelbuettel
edd at debian.org
Fri Feb 7 19:41:36 CET 2025
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
More information about the Rcpp-devel
mailing list