Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!shadooby!accuvax.nwu.edu!elvin!nucsrl!accuvax.nwu.edu!bob From: bob@accuvax.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: Executing non-interrupt-level code after an interrupt Message-ID: <10050101@accuvax.nwu.edu> Date: 16 Apr 89 14:44:47 GMT References: <1631@husc6.harvard.edu> Organization: Northwestern U, Evanston IL, USA Lines: 20 > I know that this is a "standard question", but: > If a routine is called at interrupt time, what is the best way for it to get > control back _not_ at interrupt time. The only methods I recall hearing about > are patching _GetNextEvent (and possibly _WaitNextEvent, but probably there > is one patch which will cover all cases) and using jGNEfilter, which is a > low-memory global, and thus bad. (Also, I don't know where it is documented.) > So is there a better way to do this? Failing that, what is the "accepted" > method? Thanks in advance for any information. If the interrupt handler is part of an application, then you could always post an application defined event (Using PostEvent, on the page between IM-67 and IM-69 (can you tell what key on my keyboard doesn't work??)). > --David Maymudes Bob Hablutzel Wildwood Software BOB@NUACC.ACNS.NWU.EDU Disclaimer: My cat is fixed. My keyboard isn't.