MCPcopy Create free account
hub / github.com/antlr/codebuff / reset

Method reset

output/java_guava/1.4.17/LongAdder.java:141–143  ·  view source on GitHub ↗

Resets variables maintaining the sum to zero. This method may be a useful alternative to creating a new adder, but is only effective if there are no concurrent updates. Because this method is intrinsically racy, it should only be used when it is known that no threads are concurrently updating.

()

Source from the content-addressed store, hash-verified

139
140
141 public void reset() {
142 internalReset(0L);
143 }
144
145 /**
146 * Equivalent in effect to {@link #sum} followed by {@link

Callers 3

ReaderInputStreamMethod · 0.45
parseMethod · 0.45
CodeBuffTokenStreamMethod · 0.45

Calls 1

internalResetMethod · 0.45

Tested by

no test coverage detected