home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Passing arguments to a thread
- Date: 20 Feb 1996 03:34:00 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4gbff8$104@sunsystem5.informatik.tu-muenchen.de>
- References: <4ed1eq$nfi@newsy.ifm.liu.se> <Z9W-x*5yf@yaps.rhein.de> <4f25d2$ak8@newsy.ifm.liu.se> <4f88e8$9bl@news.xs4all.nl>
- NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Yvon Rozijn (yrozijn@xs4all.nl) wrote:
- : Martin Blom (d93marbl@isy.liu.se) wrote:
- : : >> Is there a (nice) way to pass arguments to a new process?
- : : I create it with dos.library/CreateNewProc().
- : : But using NP_Arguments seems to be too much work.
- : : I wish there was a NP_UserData...
-
- : There is... kind of:
-
- : struct Process *proc;
-
- : Forbid();
- : proc=CreateNewProc(...);
- : if(proc) proc->pr_Task.tc_UserData=whatever_you_want;
- : Permit();
-
- ok, and how to read the data ?
- Would this also work with CreateProc of V1.2 ?
-
- : Yvon.
- : --
- : ___ _
- : Q : | #| : \|/ http://www. : [_]_
- : -<_>- Yvon : | ==| yrozijn@ : >WWW< xs4all.nl/ : === ) Amiga
- : / \ Rozijn : `---' xs4all.nl : /|\ ~yrozijn : O 4000
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-
-
-