(Info refinfo)
| 190 | } |
| 191 | |
| 192 | private 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 | |
| 205 | static LockingTransaction getEx(){ |
| 206 | LockingTransaction t = transaction.get(); |
no test coverage detected