MCPcopy Create free account
hub / github.com/apache/tomcat / countDown

Method countDown

java/org/apache/tomcat/util/threads/LimitLatch.java:138–145  ·  view source on GitHub ↗

Releases a shared latch, making it available for another thread to use. @return the previous counter value

()

Source from the content-addressed store, hash-verified

136 * @return the previous counter value
137 */
138 public long countDown() {
139 sync.releaseShared(0);
140 long result = getCount();
141 if (log.isTraceEnabled()) {
142 log.trace("Counting down[" + Thread.currentThread().getName() + "] latch=" + result);
143 }
144 return result;
145 }
146
147 /**
148 * Releases all waiting threads and causes the {@link #limit} to be ignored until {@link #reset()} is called.

Callers 15

countDownConnectionMethod · 0.95
runMethod · 0.80
testPoolMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
offerMethod · 0.80
getMethod · 0.80
offerMethod · 0.80
onMessageMethod · 0.80
clearLatchMethod · 0.80

Calls 4

getCountMethod · 0.95
isTraceEnabledMethod · 0.65
traceMethod · 0.65
getNameMethod · 0.65

Tested by 15

runMethod · 0.64
testPoolMethod · 0.64
runMethod · 0.64
runMethod · 0.64
runMethod · 0.64
onMessageMethod · 0.64
clearLatchMethod · 0.64
clearLatchMethod · 0.64
onMessageMethod · 0.64
onMessageMethod · 0.64
onMessageMethod · 0.64