home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18188 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ee!bloc1469
  2. From: bloc1469@ee.ee.uwm.edu (Gregory R Block)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: IPC and shared memory
  5. Date: 6 Jan 1993 05:17:38 GMT
  6. Organization: University of Wisconsin - Milwaukee
  7. Lines: 23
  8. Message-ID: <1idq1iINNqh@uwm.edu>
  9. References: <paulk.31yk@terapin.com> <1ib8dmINNesj@uwm.edu> <1993Jan5.205246.28184@ninja.zso.dec.com>
  10. NNTP-Posting-Host: 129.89.2.33
  11.  
  12. >>Like public message ports, each time you wish to access a public
  13. >>semaphore you must do a Forbid();FindSemaphore();Permit().
  14.  
  15. I noticed this nearly immediately after I posted.  (blush)  ;)
  16.  
  17. >Sort of off the subject, but presumably you'd want to do *something*
  18. >between the FindSemaphore() and the Permit(), no?  Otherwise, what's
  19. >being protected by the Forbid()/Permit()?
  20.  
  21. Ya.  In the case of FindSemaphore, above, you'll want to do your
  22. ObtainSemaphore()/ObtainSemaphoreShared() call.  Sorry.  :)  In the
  23. related case I mentioned earlier, for a public message port, it would
  24. be Forbid();FindPort();PutMsg();Permit().  Eek.  :)
  25.  
  26. Greg
  27.  
  28.  
  29.  
  30. --
  31. (: (: (: (: Have you overdosed on smileys today?  Why NOT!?! :) :) :) :)
  32. (: "Our father, who art in Iowa, Hollow be thy head, Thy ideas run    :)
  33. (:  Thy will be done, At Commodore as it is at Apple"  -Dan Barrett   :)
  34. (: (: (: (: (: (: (: (: (: (: (: (: () :) :) :) Wubba, the Dark Angel :)
  35.