
13 Feb
2004
13 Feb
'04
8:23 a.m.
John Fuller wrote:
both Ted Yuan's producer-consumer templates (cujjan2004) and the synchronized template at http://libcalc.sourceforge.net/synchronized.hpp are nice thread-safe container implementations...
I could not find the first reference. Looking at the second, it seems to implement the same idea as Raoul Gough's presented. And of course, I'll ask the same question: if I have code like if (!proxy->empty()) { int value = proxy->front(); //.... } what prevents other thread from extracting all elements between the two calls? - Volodya