Hi. Just one last clarifying question on this issue before I dive back in.
Suppose I declared a new Rcpp::List object in my C++ code, and copied the list elements from either the SEXP or the original Rcpp::List. Since the new memory is allocated in C++, would I still have the same problem because of the way Rcpp allocated the memory? Or would the copy be thread-safe?
Similarly, what if I were to create an STL container of Rcpp::Lists, and operate on each element of the container in parallel? Same problem?