143144145146147148149150151152153
atomicTransaction.begin(); if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED) { value.value = _value; atomicTransaction.commit(true); } else { atomicTransaction.rollback();
192193194195196197198199200201202
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _value = value; atomicTransaction.commit(true); } else { atomicTransaction.rollback();
241242243244245246247248249250251
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _value++; atomicTransaction.commit(true); } else { atomicTransaction.rollback();
108109110111112113114115116117118
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { atomicTransaction.commit(true); } else { System.err.println("AITMatrixImpl01.AITMatrixImpl01: failed to get lock"); atomicTransaction.rollback();
190191192193194195196197198199200
atomicTransaction.begin(); if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED) { value.value = _values[x][y]; atomicTransaction.commit(true); } else { atomicTransaction.rollback();
244245246247248249250251252253254
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _values[x][y] = value; atomicTransaction.commit(true); } else { atomicTransaction.rollback();
109110111112113114115116117118119
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { atomicTransaction.commit(true); } else { System.err.println("AITMatrixImpl04.AITMatrixImpl04: failed to get lock"); atomicTransaction.rollback();
919293949596979899100101
atomicTransaction.begin(); implicitObject.tran_commit_readlock(); atomicTransaction.commit(true); } Date end = new Date(); float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
301302303304305306307308309310311
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { atomicTransaction.commit(true); } else { System.err.println("Element.Element: failed to get lock"); atomicTransaction.rollback();
atomicTransaction.begin(); implicitObject.tran_commit_nulloper(); atomicTransaction.commit(true); } Date end = new Date(); float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);