Skip to content
Prev 44318 / 63421 Next

concurrent requests (Rook, but I think the question is more general)

On Oct 24, 2012, at 3:09 PM, Richard D. Morey wrote:

            
No, you have to use the system thread API like pthreads, NSThread etc. If you have to ask about this, you probably don't want to go there ;) - threads can be quite dangerous if you are not familiar with them.

Another poor man's solution is to simply have your C code write out a file with the progress. Along the same lines you could use a shared object to store the progress (e.g. via bigmemory) ...
Yes, if your code calls R_CheckUserInterrupt() and httpd doesn't respond at that point then it may not be allowed to run. On OS X you can try your luck with R_ProcessEvents() as well.

Cheers,
Simon