919293949596979899100101
atomicTransaction.begin(); implicitObject.tran_rollback_writelock(); atomicTransaction.commit(true); } Date end = new Date(); float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
90919293949596979899100
} catch (InvocationException invocationException) { } atomicTransaction.commit(true); } AtomicTransaction atomicTransaction = new AtomicTransaction(); atomicTransaction.begin();
101102103104105106107108109110111
IntHolder value = new IntHolder(); counter.get(value); atomicTransaction.commit(true); if (value.value == numberOfCalls) { System.out.println("Passed"); }
atomicTransaction.begin(); implicitObject.tran_rollback_nulloper(); atomicTransaction.commit(true); } Date end = new Date(); float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
172173174175176177178179180181182
} } if (successful) { atomicTransaction.commit(true); } else { atomicTransaction.rollback(); }
197198199200201202203204205206207
202203204205206207208209210211212
177178179180181182183184185186187
atomicTransaction.begin(); implicitObject.no_tran_readlock(); atomicTransaction.commit(true); } Date end = new Date(); float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
8889909192939495969798
atomicTransaction.begin(); explicitObject.tran_rollback_readlock(OTS.current().get_control()); atomicTransaction.commit(true); } Date end = new Date(); float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);