Hi Dirk,<br><br>Thanks for your reply.<br><br>
<div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Well, we already do that when RInside sets
itself up:<br>
<br>
#ifdef CSTACK_DEFNS<br>
R_CStackLimit = (uintptr_t)-1; // Don't do any stack checking,
see R Exts, '8.1.5 Threading issues'<br>
#endif<br></blockquote></div><div><br>Yes, i noticed this, and added
the MACRO definition in my code as<br>#define CSTACK_DEFNS 1<div class="im"><br><br>What I would do now is to create a sample program
with two threads, then<br></div></div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
initialize R in one and the query from the other. If that already
tickles the<br>
issue then you are out of luck, and R has to stay in one thread. You
may be<br>
able to use inter-thread communication to 'request' data from the<br>
R-containing thread by carefully brokering the requests.<br></blockquote></div><br>This
is exactly what my program is doing right now, and it does not work.<br><br>If
it works, it would be awesome, because, we could then perform
multi-core programming with Rcpp/RInside in a seamless fashion with any
native threading mechanism like Pthreads.<br>
<br>Thanks,<br>Jai <br><br><br>