Subj : Re: Study Material for Multi-threaded application developement in UNIX/LINUX To : comp.programming.threads From : Uenal Mutlu Date : Thu May 26 2005 07:39 pm "doug" wrote > > "Uenal Mutlu" wrote > > wrote > >> > >> Try this C++ library, I will give you directions > >> on how to create and use threads in a c++ context. > >> > >> http://www.partow.net/programming/posixsynchwrapper/index.html > >> > >> Regards > >> Arash Partow > > > > Maybe a bug: shouldn't the following variable in POSIXcondition.h be > > static ? > > unsigned int active_waiters > > I don't think so. I haven't looked closely at the code, but that would mean > that active_waiters tracked the number of waiting threads for *all* > condition vars, not an individual condition var. > > (And you'd also need another mutex to synchronise access to it.) True, makes sense. .