FiniteQueue again: bad synchronized loop (who wrote that thing?)

Quartz <[email protected]> Wed, 17 Sep 2003 14:37:05 -0700 (PDT)
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
For all 3 blocking_dequeue, I see the loop exits and enters the monitor endlessly.
The synchronized statement should be outside the loop.

synchronized (blocker) { //moved here
	while (true) {
		//synchronized (blocker) { //HACK: do not re-synchronize move out


Is there any hidden reason for not doing so?


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf