🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13488

Semaphores

#13488
From: Christopher A. Wichura
Date: Fri, 02 Feb 1990 21:17
18 lines
1252 bytes
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)
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////////////
Technical Details
Message-ID: <00253.AA00253@miroc>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!texbell!attctc!jolnet!miroc!caw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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