in reply to Re: Win32::Event question
in thread Win32::Event question

Well the more I think about it, I prefer option #2, since it would be best for the event not to timeout at a frequent polling interval. I'd rather have the event timeout at a larger interval and be interrupted when the user hits a key or aborts.

The only issue is that the program would need to be able to determine whether it was interrupted by an external event, or by the "user aborted" or "user input" event".

What kind of code would support that? Thanks!

Replies are listed 'Best First'.
Re^3: Win32::Event question
by ikegami (Patriarch) on Jul 21, 2005 at 15:12 UTC
    Check wait_any in Win32::IPC (which comes with ActivePerl for Windows). wait_any's return value states which event woke it up.