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

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Replying to WB Startup message with Sas/C
  5. Date: 17 Feb 1996 20:16:07 +0100
  6. Organization: dis-
  7. Message-ID: <4g59hn$m1v@serpens.rhein.de>
  8. References: <717.6614T755T957@codeworks.gen.nz> <388.6614T873T1805@nando.net>  <DMtLxL.7oo@unx.sas.com> <8Wt6y*QWf@yaps.rhein.de>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. arno@yaps.rhein.de (Arno Eigenwillig) writes:
  12.  
  13. >In article <DMtLxL.7oo@unx.sas.com>, James Cooper writes:
  14.  
  15. >>     myproc = (struct Process *)FindTask(NULL);
  16. >>     if (myproc->pr_CLI == NULL)
  17. >>         myWBS = (struct WBStartup *)GetMsg(myproc->pr_MsgPort);
  18.  
  19. >Huh? Shouldn't you WaitPort() somewhere?
  20.  
  21. You should. _Currently_ it doesn't matter because Workbench creates
  22. a Task at priority 0 and runs at priority 1. So your process won't
  23. be scheduled before the startup message is sent to you. But that's
  24. just chance. To be safe you must wait for the message.
  25.  
  26. Regards,
  27. -- 
  28.                                 Michael van Elst
  29.  
  30. Internet: mlelstv@serpens.rhein.de
  31.                                 "A potential Snark may lurk in every tree."
  32.