apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Haas <grinob.h...@laposte.net>
Subject counting semaphores
Date Wed, 18 May 2005 11:09:34 GMT
I am quite surprised that there are no counting semaphores in apr. What 
I would need to do is have thread A releasing a semaphore for as many 
times as an event has happened and thread B blocked waiting for the 
semaphore. The counting semaphore would guarantee that thread B is 
"woken up" as many times as the event has happened.

I seem to be unable to do this sort of thing using only mutexes, any ideas ?


View raw message