From a77a6cf602bda0bf8218531262064c3fb8d613b1 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 11 Mar 2005 13:27:15 +0000 Subject: [PATCH] Make reqtype field volatile (merge from branch helma_1_4) --- src/helma/framework/core/RequestEvaluator.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 9affa87c..a1b05c41 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -40,8 +40,14 @@ public final class RequestEvaluator implements Runnable { protected ScriptingEngine scriptingEngine; public RequestTrans req; public ResponseTrans res; + + // the one and only transactor thread volatile Transactor rtx; + // the type of request to be serviced, + // used to coordinate worker and waiter threads + volatile int reqtype; + // the object on which to invoke a function, if specified Object thisObject; @@ -63,8 +69,7 @@ public final class RequestEvaluator implements Runnable { // the exception thrown by the evaluator, if any. Exception exception; - // the type of request to be serviced - int reqtype; + // skin depth counter, used to avoid recursive skin rendering protected int skinDepth; /**