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

Method doSet

src/jvm/clojure/lang/LockingTransaction.java:424–436  ·  view source on GitHub ↗
(Ref ref, Object val)

Source from the content-addressed store, hash-verified

422}
423
424Object doSet(Ref ref, Object val){
425 if(!info.running())
426 throw retryex;
427 if(commutes.containsKey(ref))
428 throw new IllegalStateException("Can't set after commute");
429 if(!sets.contains(ref))
430 {
431 sets.add(ref);
432 lock(ref);
433 }
434 vals.put(ref, val);
435 return val;
436}
437
438void doEnsure(Ref ref){
439 if(!info.running())

Callers 1

alterMethod · 0.95

Calls 6

lockMethod · 0.95
runningMethod · 0.80
containsKeyMethod · 0.65
containsMethod · 0.65
addMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected