Lyle Johnson
10/17/2003 2:25:00 PM
anderson wrote:
> I'd like to use addInput to detect events occuring in
> another thread. Is there a way to take advantage of
> MsgWaitForMultipleObjects() for things like event objects
> and mutexes from FXRuby?
I don't think that there is any way for you to do this, currently. I'm
certainly open to adding support for it if I can get more details.
> It looks like you can pass any HANDLE to the FOX C++ API
> but FXRuby addInput expects Ruby IO objects. I don't know
> MSWindows much.
You are correct that the C++ version of addInput() just takes a HANDLE
on Windows. I mapped that to Ruby I/O objects since, at the time, it
seemed like the obvious choice.
What are the other librari(es) you're using with Ruby that would be the
source of the HANDLE that you would want to pass into addInput() as an
argument? If I can figure out what kind of object they're using (on the
Ruby side) to represent a Win32 HANDLE, I can probably work with those
too (he says, optimistically ;)
-- Lyle
P.S.
I did try to respond to your previous private e-mail to me about this
question, but the e-mail bounced (your mailbox was full, I think).