[REBOL] Re: wait, events and ports - how they work together ?
From: sags:apollo:lv at: 27-Jul-2006 23:14
On 27 Jul 2006 at 12:32, Gabriele Santilli wrote:
> Hi Janeks,
> Remove the event:// port from the wait list.
> sal> I.e. remove them from wait list:
> sal> tmpPrts: system/ports/wait-list clear system/ports/wait-list
> That should be:
> tmpPrts: copy system/ports/wait-list
> otherwise you're clearing it.
Here was my mistake just in e-mail - actual code contains copy.
> sal> Why in case above wait still waits on view/layout events
> It shouldn't, unless there's something else in your code.
Else I have added awake function for system port for tray handling.
And system port added to waitlist.
Then open window with view/new.
tmpPrts: copy system/ports/wait-list
serial port handling with wait in it
restore wait list
Probably I am missing something here - I will simplify & check my
code tommorow again.
> Anyway, why don't you want to get View events?
In my case wait in serial port handling waits on an view event,
rez: copy wait serial-port
Only executes when there are some events in view f.ex. mouse
movement. But I need first to get response from serial port and then
display it on layout.