home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15148 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.2 KB

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