home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: mozart.unx.sas.com!jamie
- From: jamie@cdevil.unx.sas.com (James Cooper)
- Subject: Re: FindTask()
- Originator: jamie@cdevil.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <DntF6C.4Bs@unx.sas.com>
- Date: Tue, 5 Mar 1996 22:15:48 GMT
- X-Nntp-Posting-Host: cdevil.unx.sas.com
- References: <192.6637T931T2098@academy.bastad.se>
- Organization: SAS Institute Inc.
-
-
- In article <192.6637T931T2098@academy.bastad.se>, sten@academy.bastad.se (Sten Jansson) writes:
- >When calling FindTask() with FindTask(0) and there are several tasks with
- >the same name as the task that is calling e.g. "shell process" - can you be
- >sure that it finds the right task?
-
- Yes, 100%, at least in the current (3.1) and all previous versions of
- the Amiga OS.
-
- This is because when you use FindTask(NULL), it doesn't look up based on
- the name (how can it, when you didn't pass one in?!?), it simply returns
- the value stored as
-
- yourprocess->pr_ThisTask;
-
- --
- ---------------
- Jim Cooper
- (jamie@unx.sas.com) bix: jcooper
-
- Any opinions expressed herein are mine (Mine, all mine! Ha, ha, ha!),
- and not necessarily those of my employer.
-
- I'm NOT Politically Correct, but that's because I'm "Sensitivity Challenged."
-