/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
/** * Add the current thread to the list of threads associated with this * transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean addChildThread () // current thread { return addChildThread(Thread.currentThread()); }
protected TransactionalThread () { /* * New thread should not be running yet, so this * should work! */ action = BasicAction.Current(); if (action != null) { action.addChildThread(this); } }
/** * By setting the register flag accordingly, information about the thread * may not be propagated to the action, i.e., only the thread's notion of * current changes. */ public static void pushAction (BasicAction a, boolean register) { Deque<BasicAction> txs = _threadList.get(); if (txs == null) { txs = new ArrayDeque<BasicAction>(); txs.push(a); _threadList.set(txs); } else txs.push(a); if (register) a.addChildThread(Thread.currentThread()); }
/** * By setting the register flag accordingly, information about the thread * may not be propagated to the action, i.e., only the thread's notion of * current changes. */ public static void pushAction (BasicAction a, boolean register) { Thread t = Thread.currentThread(); Stack txs = (Stack) _threadList.get(); if (txs == null) { txs = new Stack(); txs.push(a); _threadList.set(txs); } else txs.push(a); if (register) a.addChildThread(t); }
/** * By setting the register flag accordingly, information about the thread * may not be propagated to the action, i.e., only the thread's notion of * current changes. */ public static void pushAction (BasicAction a, boolean register) { Thread t = Thread.currentThread(); Stack txs = (Stack) _threadList.get(); if (txs == null) { txs = new Stack(); txs.push(a); _threadList.set(txs); } else txs.push(a); if (register) a.addChildThread(t); }
/** * By setting the register flag accordingly, information about the thread * may not be propagated to the action, i.e., only the thread's notion of * current changes. */ public static void pushAction (BasicAction a, boolean register) { Deque<BasicAction> txs = _threadList.get(); if (txs == null) { txs = new ArrayDeque<BasicAction>(); txs.push(a); _threadList.set(txs); } else txs.push(a); if (register) a.addChildThread(Thread.currentThread()); }
/** * By setting the register flag accordingly, information about the thread * may not be propagated to the action, i.e., only the thread's notion of * current changes. */ public static void pushAction (BasicAction a, boolean register) { Deque<BasicAction> txs = _threadList.get(); if (txs == null) { txs = new ArrayDeque<BasicAction>(); txs.push(a); _threadList.set(txs); } else txs.push(a); if (register) a.addChildThread(Thread.currentThread()); }
/** * By setting the register flag accordingly, information about the thread * may not be propagated to the action, i.e., only the thread's notion of * current changes. */ public static void pushAction (BasicAction a, boolean register) { Thread t = Thread.currentThread(); Stack txs = (Stack) _threadList.get(); if (txs == null) { txs = new Stack(); txs.push(a); _threadList.set(txs); } else txs.push(a); if (register) a.addChildThread(t); }
/** * By setting the register flag accordingly, information about the thread * may not be propagated to the action, i.e., only the thread's notion of * current changes. */ public static void pushAction (BasicAction a, boolean register) { Deque<BasicAction> txs = _threadList.get(); if (txs == null) { txs = new ArrayDeque<BasicAction>(); txs.push(a); _threadList.set(txs); } else txs.push(a); if (register) a.addChildThread(Thread.currentThread()); }
public static void create (Thread thread) throws IllegalArgumentException { /* * New thread should not be running yet, so this * should work! */ final String threadId = ThreadUtil.getThreadId(thread) ; if (actions.get(threadId) == null) { BasicAction currentAction = BasicAction.Current(); if (currentAction != null) { currentAction.addChildThread(thread); actions.put(threadId, currentAction); currentAction = null; } } else throw new IllegalArgumentException(); }