At 11:27 AM -0500 2001/07/19, Jim Garozzo wrote:
>I want to generate an event to make the EvtGetEvent(&event, evtWaitForever);
>stop waiting forever.
>
>Anybody know how I can just generate an event that will be set in an
>interrupt?
>
>I've looked at EvtWakeup but it didn't help me.

Really? That should do it... causing EvtGetEvent to return a nil event.

Note that you cannot call EvtAddEventToQueue from within the SrmWakeUpHandler because 
it is not an interrupt-level-safe function (because it may allocate and/or move 
memory). Perhaps that is masking the real problem? You could also call EvtEnqueueKey 
(because it *is* interrupt-level-safe) using a key value that your application uses as 
a trigger.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to