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

Method compareAndSet

output/java_guava/1.4.18/AtomicDouble.java:146–148  ·  view source on GitHub ↗

Atomically sets the value to the given updated value if the current value is bitwise equal to the expected value. @param expect the expected value @param update the new value @return true if successful. False return indicates that the actual value was not bitwise eq

(double expect, double update)

Source from the content-addressed store, hash-verified

144
145
146 public final boolean compareAndSet(double expect, double update) {
147 return updater.compareAndSet(this, doubleToRawLongBits(expect), doubleToRawLongBits(update));
148 }
149
150 /**
151 * Atomically sets the value to the given updated value

Callers 15

addMethod · 0.45
removeMethod · 0.45
removeExactlyMethod · 0.45
setCountMethod · 0.45
addAndGetMethod · 0.45
getAndAddMethod · 0.45
putMethod · 0.45
removeMethod · 0.45
replaceMethod · 0.45
compareAndSetRunnerMethod · 0.45
casWaitersMethod · 0.45
casListenersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected