You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/09/27 17:36:17 UTC
DO NOT REPLY [Bug 12841] -
GenericObjectPool unused variable and unused synchronized block
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>