Code for Q functions?
Posted on 1998-04-22
Anybody want to post code or URL to code for generic Q functions:
1) AddQ() will signal an internal event.
2) RemoveQ() will wait on the event or timeout.
But the trick is that it will work even under scenerio of multiple producers and/or multiple consumers on the Q (multi-thread).