[R-SIG-Mac] Threads in R.app?

Simon Urbanek simon.urbanek at r-project.org
Wed Jul 23 22:10:24 CEST 2014


On Jul 23, 2014, at 11:46 AM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:

> As I've mentioned before, I'm seeing crashes in rgl when running in R.app.  I'm starting to wonder if the Cocoa messages that my window receives are running in a different thread from the thread where the R console takes input, because it seems some changes are not happening in the expected order.  Is this the case?  Is there any way I can force the rgl window to have its messages received in the same thread?
> 

Normally, all messages are on the main loop. Although apps can run separate threads, the OS loop is always on the main thread (that's why it's so delicate for us, because R also runs on the main thread so the two loops must be meshed together without blocking each other).

Can you send me a reference to the issue, please? I'll try to find some spare cycles to look into it later this week.

Thanks,
Simon



More information about the R-SIG-Mac mailing list