🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1662

Counting SEMs in OS/2?!?

#1662
From: Gary Kushner
Date: Wed, 21 Nov 1990 23:17
13 lines
980 bytes
Does anyone know if there are counting semaphores in OS/2 version
1.2??  I have a resource that can have multiple users, I want to
use a counting semaphore to control access.  I would like to be
able to DosSemClear() the semaphore N times, and then other
processes could DosSemRequest() the semaphore that number of times
without being blocked.

Can this be done?  (There should be an <easy> way!)
I would be very appreciative if someone could post or send me
the answer!

Thanks,
-Gary
Technical Details
Message-ID: <8201@dog.ee.lbl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ux5.lbl.gov!kushner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ux5.lbl.gov!kushner
From: kushner@ux5.lbl.gov (Gary Kushner)
Newsgroups: comp.os.os2.programmer
Subject: Counting SEMs in OS/2?!?
Message-ID: <8201@dog.ee.lbl.gov>
Date: 21 Nov 90 23:17:27 GMT
Sender: usenet@dog.ee.lbl.gov
Reply-To: kushner@ux5.lbl.gov (Gary Kushner)
Organization: Lawrence Berkeley Laboratory, Berkeley
Lines: 13
X-Local-Date: Wed, 21 Nov 90 15:17:27 PST