home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18133 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.1 KB  |  39 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!jato!jdickson
  3. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  4. Subject: Re: IPC and shared memory
  5. Message-ID: <1993Jan4.220638.12229@jato.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory
  7. Distribution: comp.sys.amiga.programmer
  8. Date: Mon, 4 Jan 1993 22:06:38 GMT
  9. Lines: 28
  10.  
  11. I wrote:
  12.  
  13. >> IMHO FindSemaphore is a waste of time if your usage of it is purely
  14. >> for the convenience of knowing it by name.  I suggest simply making
  15. >> the signal semaphore globally known or just to the tasks/processes
  16. >> that wish to use it and forgo the FindSemaphore bit all together.
  17.  
  18. paulk@terapin.com (Paul Kienitz) writes:
  19.  
  20. >HOW do you "make it globally known"??  That's what the name is for.
  21.  
  22. Declare the Signal Semaphore structure itself or a pointer to it in your
  23. main program's data area and then restore that area in any sub tasks/pro-
  24. cesses that wish to gain access to the semaphore. Under Manx Aztec C this
  25. is a simple matter of restoring register A4. Use InitSemaphore instead
  26. of AddSemaphore. Actual usage is no different.
  27.  
  28. Jeff
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.