Boost logo

Boost :

From: Andreas Pokorny (diemumiee_at_[hidden])
Date: 2004-06-26 12:45:41


Hi,
I have problems understanding how mutexes, scoped locks and conditions
should work togehter.
I took the condition.cpp example and with the buffered shared by two
threads as a basis of my code:
http://svn.zynot.org/svn/zynot/projects/xeta/trunk/source/src/xeta/curl.cpp

There is a list filled by one thread, and a thread that removes the entries
after they have been downloaded using curl. The worker-thread waits for
a jobs_empty condition and the insertion method calls notify_one after
every insertion.
Currently the worker-thread just prints "Sitting and waiting", and never
reacts on any calls of notifiy_one().

Regards
Andreas Pokorny


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk