home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5056 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: cs.ruu.nl!usenet
  2. From: wsldanke@cs.ruu.nl (Wessel Dankers)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: FindTask() VERY IMPORTANT
  5. Date: 08 Mar 96 14:00:41 +0100
  6. Organization: Dept of Computer Science, Utrecht University, The Netherlands
  7. Message-ID: <1522.6641T840T2053@cs.ruu.nl>
  8. References: <4hfvff$sj6@werple.net.au> <192.6637T931T2098@academy.bastad.se>?20@<4hm7qm$otm@news.uni-paderborn.de><4hmpfb$5pi@news.xs4all.nl>
  9.     <MlDlTdS00iWS45Xc5x@andrew.cmu.edu><1219.6640T1186T779@cs.ruu.nl> <UlDr9Vu00WBN07vIAh@andrew.cmu.edu>
  10. NNTP-Posting-Host: anx1p16.cc.ruu.nl
  11. X-Newsreader: THOR 2.22 (Amiga TCP/IP)
  12.  
  13. Berend Ozceri <bo24+@andrew.cmu.edu> wrote:
  14. >> exec/execbase.h:
  15. >>   struct  Task *ThisTask; /* pointer to current task (readable) */
  16. >>
  17. >> Since it is documented as readable, my guess is that it will remain
  18. >> readable, AT will probably kludge it if they change the scheduler. On
  19. >> multiprocessor-computers, they could try to fix it using the MMU.
  20.  
  21. > Could you please explain to me why using the provided exec.library
  22. > function is such a hassle that you would rather peek around system
  23. > structures yourself? Does it make your code look cooler or something?
  24.  
  25. I didn't say I don't use FindTask(NULL), as a matter of fact I always do. It's
  26. less typing, too :-)
  27.  
  28. > I am not by any means proposing that Amiga Technologies should make this
  29. > field obsolete in order to intentionally break programs, but I see no
  30. > reason why anyone would rather peek the structure directly than using
  31. > FindTask(NULL).
  32.  
  33. OS's have to continue supporting _documented_ features, or no garuantees can
  34. be made as to whether or not a program will continue to work. The question is
  35. not "is it better to use FindTask()" but "can AT remove SysBase->ThisTask".
  36.  
  37. --
  38. Wessel Dankers                 _\\|//_            <wsldanke@cs.ruu.nl>
  39.                                ///|\\\
  40. ----------------------------oOO--(_)---OOo----------------------------
  41. `Never imagine yourself not to be otherwise than what it might appear
  42. to others that what you were or might have been was not otherwise than
  43. what you had been would have appeared to them to be otherwise.'
  44.  
  45.