commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12841] - GenericObjectPool unused variable and unused synchronized block
Date Fri, 27 Sep 2002 15:36:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12841>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12841

GenericObjectPool unused variable and unused synchronized block





------- Additional Comments From rleland@apache.org  2002-09-27 15:36 -------
The only reason I think there might have been a syncronized
block here is if the sleep() were to changed to a wait()
by doing this:

            long  sleeptime = _timeBetweenEvictionRunsMillis;
            while(!_cancelled) {
               synchronized(GenericObjectPool.this) {
                   try {
                      wait(sleeptime);
                   } catch(Exception e) {
                    ; // ignored
                   }
                }
                cursor = doEviction(cursor);
            }

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message