You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2015/12/18 04:50:56 UTC
activemq-artemis git commit: fixing executor (adding state back)
Repository: activemq-artemis
Updated Branches:
refs/heads/master 31748a793 -> c0f71c3e1
fixing executor (adding state back)
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/c0f71c3e
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/c0f71c3e
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/c0f71c3e
Branch: refs/heads/master
Commit: c0f71c3e1537da7bafb9071f746cfcb2687778e0
Parents: 31748a7
Author: Clebert Suconic <cl...@apache.org>
Authored: Thu Dec 17 22:43:20 2015 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Thu Dec 17 22:46:33 2015 -0500
----------------------------------------------------------------------
.../apache/activemq/artemis/utils/OrderedExecutorFactory.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/c0f71c3e/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
index 18db9c7..b1e9d88 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
@@ -62,6 +62,10 @@ public final class OrderedExecutorFactory implements ExecutorFactory {
private final Executor delegate;
private final ExecutorTask task = new ExecutorTask();
+ // used by stateUpdater
+ @SuppressWarnings("unused")
+ private volatile int state = 0;
+
private static final AtomicIntegerFieldUpdater<OrderedExecutor> stateUpdater = AtomicIntegerFieldUpdater.newUpdater(OrderedExecutor.class, "state");
private static final int STATE_NOT_RUNNING = 0;