In article <83202@palm-dev-forum>, [EMAIL PROTECTED] says... > > I have a interrupt driven serial input routine and want > to have that place a custom event in the event queue. > > Has anybody timed how long in milliseconds the delay > would be before my routine in a form handler would > recieve the event? > > Does the event go on the queue and immedently > go to the form handler or does the system handle somthing > like the 10msec delay between nil events then take the > custom event I placed on the queue? > > Thanks in advance. I hope someone knows.
First, you can't put any event in the queue. Interrupt handlers can only add keys to the key queue -- that's why there are so many special purpose virtual keys that get intercepted by other parts of the system. As for latencies -- your key won't be processed immediately, but it should wake up the queue. If there are no keys ahead of it, it should be handled pretty quickly, but lots of things can delay processing -- system wake up time among them. You'd probably do well to make your own timings if this is going to be critical. Using generously-sized ring buffers or other good flow control code will be helpful. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Get help at http://palmoswerks.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
