On Mon, Nov 12, 2001 at 03:06:33PM -0500, Gianni Johansson wrote: > There are unlocked reads and writes of runningCount in several places. This > looks like a race condition to me. Remember that ++ and -- are not > guaranteed to be atomic.
runningCount is volatile so you don't have to worry about ++ and -- > See public void run() and > reclaim(). > > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/freenet/Freenet/thread/ThreadPool.java?rev=1.18&content-type=text/x-java > > If the list concurs I will fix it. -- :: tavin cole (tcole at espnow.com) :: if there's been a way to build it there'll be a way to destroy it things are not all that out of control - stereolab _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
