Path: 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 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 way!) I would be very appreciative if someone could post or send me the answer! Thanks, -Gary