synchronized (thread) { if (Http.DEBUG) { http.logDebug(thread.getName() + ": becoming idle"); }  activeThreads.removeElement(thread);  if (hitCount > 0) { hitCount--; thread.close(); } else { if (!idleThreads.contains(thread)) { idleThreads.addElement(thread); notify(); }
if (Http.DEBUG) { http.logDebug(thread.getName() + ": becoming idle"); }  activeThreads.removeElement(thread);  if (hitCount > 0) { hitCount--; thread.close(); } else { if (!idleThreads.contains(thread)) { idleThreads.addElement(thread); notify();
	public synchronized void putThread(HttpThread thread) {		synchronized (thread) {			if (Http.DEBUG) {				http.logDebug(thread.getName() + ": becoming idle"); //$NON-NLS-1$			}			activeThreads.removeElement(thread);			if (hitCount > 0) {				hitCount--;				thread.close();			} else {				if (!idleThreads.contains(thread)) {					idleThreads.addElement(thread);					notify();				}			}		}		adjustThreadCount();	}