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

Method barge

src/jvm/clojure/lang/LockingTransaction.java:192–203  ·  view source on GitHub ↗
(Info refinfo)

Source from the content-addressed store, hash-verified

190}
191
192private boolean barge(Info refinfo){
193 boolean barged = false;
194 //if this transaction is older
195 // try to abort the other
196 if(bargeTimeElapsed() && startPoint < refinfo.startPoint)
197 {
198 barged = refinfo.status.compareAndSet(RUNNING, KILLED);
199 if(barged)
200 refinfo.latch.countDown();
201 }
202 return barged;
203}
204
205static LockingTransaction getEx(){
206 LockingTransaction t = transaction.get();

Callers 2

lockMethod · 0.95
runMethod · 0.95

Calls 2

bargeTimeElapsedMethod · 0.95
compareAndSetMethod · 0.65

Tested by

no test coverage detected