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

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Passing arguments to a thread
  5. Date: 20 Feb 1996 03:34:00 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4gbff8$104@sunsystem5.informatik.tu-muenchen.de>
  9. References: <4ed1eq$nfi@newsy.ifm.liu.se> <Z9W-x*5yf@yaps.rhein.de> <4f25d2$ak8@newsy.ifm.liu.se> <4f88e8$9bl@news.xs4all.nl>
  10. NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Yvon Rozijn (yrozijn@xs4all.nl) wrote:
  14. : Martin Blom (d93marbl@isy.liu.se) wrote:
  15. : : >> Is there a (nice) way to pass arguments to a new process?
  16. : : I create it with dos.library/CreateNewProc().
  17. : : But using NP_Arguments seems to be too much work.
  18. : : I wish there was a NP_UserData...
  19.  
  20. : There is... kind of:
  21.  
  22. :    struct Process *proc;
  23.  
  24. :    Forbid();
  25. :    proc=CreateNewProc(...);
  26. :    if(proc) proc->pr_Task.tc_UserData=whatever_you_want;
  27. :    Permit();
  28.  
  29. ok, and how to read the data ?
  30. Would this also work with CreateProc of V1.2 ?
  31.  
  32. : Yvon.
  33. : -- 
  34. :                  ___                                   _
  35. :    Q          : |  #|           :  \|/  http://www. : [_]_
  36. :  -<_>- Yvon   : | ==| yrozijn@  : >WWW< xs4all.nl/  : === ) Amiga
  37. :   / \  Rozijn : `---' xs4all.nl :  /|\  ~yrozijn    :     O  4000
  38. ------------------------------------------------------------------------
  39.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  40.  
  41.  
  42.