home *** CD-ROM | disk | FTP | other *** search
- Path: news.ifm.liu.se!d93marbl
- From: d93marbl@isy.liu.se (Martin Blom)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Passing arguments to a thread
- Date: 16 Feb 1996 19:25:01 GMT
- Message-ID: <4g2lmd$3pm@newsy.ifm.liu.se>
- 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: mut.isy.liu.se
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: NN version 6.5.0 #26 (NOV)
-
- yrozijn@xs4all.nl (Yvon Rozijn) writes:
-
- >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();
-
- Interesting! Thanks.
- --
- +--------- Martin 'Leviticus' Blom ----------+ Commodore 128D
- | Linkoping Institute of Technology - Sweden | Amiga 4000/040
- +----------- lcs@lysator.liu.se -------------+
- http://www.lysator.liu.se/~lcs/
-