Article View: comp.sys.sun
Article #12284Notifier question
From: Mike Smithwick
Date: Wed, 26 Apr 1989 04:15
Date: Wed, 26 Apr 1989 04:15
35 lines
1466 bytes
1466 bytes
How do I "poll" the nofier while I am in a tight processing loop? I want
to check for a menu selection or button event so the user can quit the
operation if he(she) doesn't want to wait 3 minutes for it to complete.
What I am doing is simply. . .
main()
{
. . .
window_main_loop();
}
do_some_funky_stuff_notifier_proc()
{
for(i=0;i<A_FEW_ZILLION;I++)
{
[what can I do here to handle normal notifier events?]
}
}
I tried to put an explicit call to notify_dispatch() in the loop, since
that is supposed check for events and call the appropriate routines, but
I gather if we're already in a notifier proc, the notifier event handling
is blocked to prevent us from attepting some recursive nonsense.
*** mike (cerbral GURU, insert M&Ms to restart) smithwick***
"Oh, I'm just a NOP in the instruction set of life, oh, ohhhh, hmmmmm"
[disclaimer : nope, I don't work for NASA, I take full blame for my ideas]
Technical Details
Message-ID:
<23409@ames.arc.nasa.gov>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: mike@ames.arc.nasa.gov (Mike Smithwick) Newsgroups: comp.sys.sun Subject: Notifier question Keywords: Windows Message-ID: <23409@ames.arc.nasa.gov> Date: 26 Apr 89 04:15:28 GMT Sender: usenet@rice.edu Organization: NASA - Ames Research Center Lines: 35 Approved: Sun-Spots@rice.edu Original-Date: 4 Apr 89 16:33:27 GMT X-Sun-Spots-Digest: Volume 7, Issue 251, message 6 of 14