111112113114115116117118119120121
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { atomicTransaction.commit(true); } else { System.err.println("AITMatrixImpl03.AITMatrixImpl03: failed to get lock"); atomicTransaction.rollback();
200201202203204205206207208209210
{ try { _values[x][y].get_value(value); atomicTransaction.commit(true); } catch (InvocationException invocationException) { atomicTransaction.rollback();
332333334335336337338339340341342
atomicTransaction.begin(); if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED) { value.value = _value; atomicTransaction.commit(true); } else { System.err.println("AITPingPongImpl01.get: failed to get lock"); atomicTransaction.rollback();
286287288289290291292293294295296
{ try { _values[x][y].set_value(value); atomicTransaction.commit(true); } catch (InvocationException invocationException) { atomicTransaction.rollback();
415416417418419420421422423424425
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();
8889909192939495969798
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { atomicTransaction.commit(true); } else { System.err.println("AITCounterImpl01.AITCounterImpl01: failed to get lock"); atomicTransaction.rollback();
471472473474475476477478479480481
atomicTransaction.begin(); if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED) { value.value = _value; atomicTransaction.commit(true); } else { atomicTransaction.rollback();
144145146147148149150151152153154
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { atomicTransaction.commit(true); } else { System.err.println("AITCounterImpl03.AITCounterImpl03: failed to get lock"); atomicTransaction.rollback();
520521522523524525526527528529530
atomicTransaction.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _value = value; atomicTransaction.commit(true); } else { atomicTransaction.rollback();