GetEx() public static method

Get the transaction running on this thread (throw exception if no transaction).
public static GetEx ( ) : LockingTransaction
return LockingTransaction
示例#1
0
 public void touch()
 {
     LockingTransaction.GetEx().DoEnsure(this);
 }
示例#2
0
 public object commute(IFn fn, ISeq args)
 {
     return(LockingTransaction.GetEx().DoCommute(this, fn, args));
 }
示例#3
0
        public object alter(IFn fn, ISeq args)
        {
            LockingTransaction t = LockingTransaction.GetEx();

            return(t.DoSet(this, fn.applyTo(RT.cons(t.DoGet(this), args))));
        }
示例#4
0
 public object set(object val)
 {
     return(LockingTransaction.GetEx().DoSet(this, val));
 }