Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!texbell!attctc!jolnet!miroc!caw From: caw@miroc.UUCP (Christopher A. Wichura) Newsgroups: comp.sys.amiga.tech Subject: Semaphores Keywords: Exec Semaphore Message-ID: <00253.AA00253@miroc> Date: 2 Feb 90 21:17:52 GMT Followup-To: comp.sys.amiga.tech Lines: 18 I am about to start fooling with semaphores for a program I am working on and have run across something that bothers me. There is no opposite to InitSemaphore() that I can find. When my program wants to exit, which includes closing down the semaphore, what do I do? Is it `safe' to simply drop the semaphore if all ObtainSemaphore()s have been matched by an equal number of ReleaseSemaphore()s? This will be a private semaphore so I don't have to worry about removing it from the system lists, or at least so it would seem. -=> CAW -- /////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Christopher A. Wichura ...!jolnet!miroc!caw (my amiga) u12401@uicvm.uic.edu (my school account) \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////////////