Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!ogicse!milton!grasp1.univ-lyon1.fr!wolf From: wolf@grasp1.univ-lyon1.fr (Christophe Wolfhugel) Newsgroups: comp.os.os2.programmer Subject: Making a non exclusive semaphore (like on Unix) Keywords: semaphore, counter, exclusive Message-ID: <18131@milton.u.washington.edu> Date: 10 Mar 91 15:14:32 GMT Sender: news@milton.u.washington.edu Organization: INSA Departement Informatique, Lyon, France Lines: 9 Is there any mechanisme similar to Unixes' semaphores, ie I'd like to get a semaphore with units: - one thread increments it (so never blocking) - another thread uses units and gets blocked only when the counter is 0. (it's for managing a packet layer window in a comm package). -- Christophe Wolfhugel (on irc: Zolf) | Email: wolf@grasp1.univ-lyon1.fr Listserv admin at fifi.univ-lyon1.fr | Fax: (+33) 72 44 08 00