home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!news
- From: urlichs@smurf.sub.org (Matthias Urlichs)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Creating background tasks (HELP!).
- Date: 8 Sep 1992 13:17:51 +0200
- Organization: University of Karlsruhe, FRG
- Lines: 33
- Message-ID: <18i250INNkub@smurf.smurf.sub.org>
- References: <scott.714617437@mcl> <1992Aug24.133440.1050@sunfs3.Camex.COM> <1992Aug24.234902.26204@kronos.arc.nasa.gov>
- NNTP-Posting-Host: 127.0.0.1
-
- In comp.sys.mac.programmer, article <1992Aug24.234902.26204@kronos.arc.nasa.gov>,
- joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91) writes:
- > In article <1992Aug24.133440.1050@sunfs3.Camex.COM> kent@sunfs3.Camex.COM (Kent Borg) writes:
- > >In article <scott.714617437@mcl> scott@mcl.ucsb.edu (Scott Bronson) writes:
- > >>(don't use GetNextEvent unless you HAVE to)
- > >
- > >Quite right. My posting was wrong. I though that WaitNextEvent()
- > >reduced to the same thing as GetNextEvent() when the wait was zero and
- > >the rgn empty. Wrong. WaitNextEvent() also calls SystemTask() for
- > ^^^^^^^^^^^^^^^^^^
- >
- > No. WaitNextEvent() does NOT call systemTask() -- it has its own
- > way of dealing with this type of action for you. But it does not,
- > to the best of my knowledge, call SystemTask(), which should not be used
- > (does nothing?) under systems with WaitNextEvent().
-
- WaitNextEvent calls GetNextEvent when the wait is zero and the region empty.
- GetNextEvent calls SystemTask internally.
- (This is under System 7.0.1. Set a BReak on WaitNextEvent, Go, set a BReak
- on SystemTask, Go, StackCrawl, examine code at calling points.
- Clear breakpoints, Go. All this is Macsbug; your debugger may vary. :-)
- All three routines are reimplemented by System 7.
-
- Given this, calling SystemTask is superfluous but definitely harmless.
-
- --
- "For that matter, compare your pocket computer with the massive jobs of
- a thousand years ago. Why not, then, the last step of doing away with
- computers altogether?"
- -- Jehan Shuman
- --
- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\
- Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany -- +49-721-9612521 \o)/
-