Paul Moore wrote: > > On the other hand, if the API is > > create-vm ( startup-args -- vm ) > > then you get back a VM handle, which the calling thread can use how it > likes. With a suitable > > get-pipe ( vm -- write-pipe read-pipe ) > > call, you can (allocate and) get the necessary pipe handles. >
Unfortunately you can't call get-pipe and get it to do what you want because the target vm is running on another thread. You can't do anything which modifies the target vm's heap because there's no locking in the garbage collector. That's the reason for needing a message queue. > > (I'll ask again, because I'm still baffled by the various git > repositories/branches/whatever - is there anywhere I can download a > work-in-progress copy of all this?) > There's not much to look at. Take a look at the native-thread-test vocab, in particularly 'start-vm-in-os-thread'. Cheers, Phil ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
