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

  1. Path: xs4all.nl!not-for-mail
  2. From: yrozijn@xs4all.nl (Yvon Rozijn)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Passing arguments to a thread
  5. Date: 21 Feb 1996 19:11:06 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Distribution: world
  8. Message-ID: <4gfqoa$ggs@news.xs4all.nl>
  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> <4gbff8$104@sunsystem5.informatik.tu-muenchen.de>
  10. NNTP-Posting-Host: asd09-10.dial.xs4all.nl
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12.  
  13. Juergen "Rally" Fischer (fischerj@Informatik.TU-Muenchen.DE) wrote:
  14. : Yvon Rozijn (yrozijn@xs4all.nl) wrote:
  15. : :    struct Process *proc;
  16. : :    Forbid();
  17. : :    proc=CreateNewProc(...);
  18. : :    if(proc) proc->pr_Task.tc_UserData=whatever_you_want;
  19. : :    Permit();
  20. : ok, and how to read the data ?
  21.  
  22. In the child process, you simply do:
  23.  
  24.    struct MyData *mydata=(struct MyData *)FindTask(NULL)->tc_UserData;
  25.  
  26. : Would this also work with CreateProc of V1.2 ?
  27.  
  28. I don't know much about CreateProc, but I think it will work there too.
  29.  
  30. Yvon.
  31. -- 
  32.                  ___                                   _
  33.    Q          : |  #|           :  \|/  http://www. : [_]_
  34.  -<_>- Yvon   : | ==| yrozijn@  : >WWW< xs4all.nl/  : === ) Amiga
  35.   / \  Rozijn : `---' xs4all.nl :  /|\  ~yrozijn    :     O  4000
  36.