122123124125126127128129130131132
boolean res = false; CurrentImple current = OTSImpleManager.current(); try { current.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _value = value;
153154155156157158159160161162163
CurrentImple current = OTSImpleManager.current(); int value = -1; try { current.begin(); if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED) { value = _value;
104105106107108109110111112113114
cont = null; } System.out.println("setget_i.set - beginning nested action"); current.begin(); cont = current.get_control(); if (cont != null) {
99100101102103104105106107108109
CurrentImple current = OTSImpleManager.current(); for (int i = 0; i < 10; i++) { current.begin(); if (doCommit) current.commit(true); else current.rollback();
115116117118119120121122123124125
// Run 1000 interations. for (int i = 0; i < iters; i++) { current.begin(); if (doCommit) current.commit(true); else current.rollback();
5758596061626364656667
{ CurrentImple current = OTSImpleManager.current(); try { current.begin(); Util.indent(_threadId, 0); System.out.println("begin"); AtomicWorker3.randomOperation(_threadId, 0);
6970717273747576777879
_value = 0; try { current.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _value = 0; current.commit(true);
CurrentImple current = OTSImpleManager.current(); try { current.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _value = _value + value;
158159160161162163164165166167168
CurrentImple current = OTSImpleManager.current(); try { current.begin(); if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED) { _value = value;
201202203204205206207208209210211
CurrentImple current = OTSImpleManager.current(); try { current.begin(); if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED) { value.value = _value;