MCPcopy Index your code
hub / github.com/clojure/clojure / resetVals

Method resetVals

src/jvm/clojure/lang/Atom.java:161–172  ·  view source on GitHub ↗
(Object newv)

Source from the content-addressed store, hash-verified

159}
160
161public IPersistentVector resetVals(Object newv){
162 validate(newv);
163 for(; ;)
164 {
165 Object oldv = deref();
166 if(state.compareAndSet(oldv, newv))
167 {
168 notifyWatches(oldv, newv);
169 return LazilyPersistentVector.createOwning(oldv, newv);
170 }
171 }
172}
173
174}

Callers

nothing calls this directly

Calls 5

derefMethod · 0.95
createOwningMethod · 0.95
validateMethod · 0.80
notifyWatchesMethod · 0.80
compareAndSetMethod · 0.65

Tested by

no test coverage detected