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