Message-ID: <4F1F7ABF-921C-4EF4-90DE-BC7486545E6E@mit.edu>
Date: 2011-08-19T18:09:14Z
From: Michael Braun
Subject: [Rcpp-devel] Stack imbalance warning when using Rcpp and OpenMP
In-Reply-To: <20016.27928.725781.977696@max.nulle.part>
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?