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

  1. Path: news.ifm.liu.se!d93marbl
  2. From: d93marbl@isy.liu.se (Martin Blom)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Passing arguments to a thread
  5. Date: 16 Feb 1996 19:25:01 GMT
  6. Message-ID: <4g2lmd$3pm@newsy.ifm.liu.se>
  7. References: <4ed1eq$nfi@newsy.ifm.liu.se> <Z9W-x*5yf@yaps.rhein.de> <4f25d2$ak8@newsy.ifm.liu.se> <4f88e8$9bl@news.xs4all.nl>
  8. NNTP-Posting-Host: mut.isy.liu.se
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Newsreader: NN version 6.5.0 #26 (NOV)
  13.  
  14. yrozijn@xs4all.nl (Yvon Rozijn) writes:
  15.  
  16. >Martin Blom (d93marbl@isy.liu.se) wrote:
  17. >: >> Is there a (nice) way to pass arguments to a new process?
  18. >: I create it with dos.library/CreateNewProc().
  19. >: But using NP_Arguments seems to be too much work.
  20. >: I wish there was a NP_UserData...
  21.  
  22. >There is... kind of:
  23.  
  24. >   struct Process *proc;
  25.  
  26. >   Forbid();
  27. >   proc=CreateNewProc(...);
  28. >   if(proc) proc->pr_Task.tc_UserData=whatever_you_want;
  29. >   Permit();
  30.  
  31. Interesting! Thanks.
  32. --
  33.  +--------- Martin 'Leviticus' Blom ----------+    Commodore 128D 
  34.  | Linkoping Institute of Technology - Sweden |    Amiga 4000/040
  35.  +----------- lcs@lysator.liu.se -------------+
  36.                                   http://www.lysator.liu.se/~lcs/
  37.