Hi Paul, Hi Everyone,

It turned out to be a problem with io-completion-ports:
io.pipes.windows.nt registers the completion port with the parent vm on
creation. I then pass the write handle to the child vm thread, and when
it writes the completion event still fires in the parent.

This is easy to fix for the single child case (don't register the
completion port with the parent), but I'm not sure how to fix this so
that multiple threads can write to the same pipe.

I need to experiment to see if multiple completion ports can be created
and just have each vm ignore events that don't have a waiting
continuation. Any ideas or pointers would be much appreciated.

Many thanks,

Phil


Paul Moore wrote:
> 2009/10/28 Paul Moore <[email protected]>:
>> Yes, the default pipe creation in io.pipes.windows.nt makes the pipe
>> handles non-inheritable. Rather than hacking the security attributes,
>> you could use DuplicateHandle (from windows.kernel32) to create an
>> inheritable copy of the handle. That should work, but I haven't got
>> the expertise with alien to set up the various pointers etc.
> 
> (still digging :-))
> 
> In io.launcher.windows.nt, it looks like duplicate-handle creates an
> inheritable copy of a handle, so that would do the trick for you.
> 
> Paul.
> 
> ------------------------------------------------------------------------------
> 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
> 



------------------------------------------------------------------------------
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

Reply via email to