From 0e26f3fee561971c87203a34230d8ba0e2e6f651 Mon Sep 17 00:00:00 2001 From: neil_a_wilson <neil_a_wilson@localhost> Date: Thu, 20 Sep 2007 21:53:46 +0000 Subject: [PATCH] Update the time thread to make the "time" variable volatile. This will ensure that no thread will have the possibility of seeing partial updates to it. --- opends/src/server/org/opends/server/util/TimeThread.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opends/src/server/org/opends/server/util/TimeThread.java b/opends/src/server/org/opends/server/util/TimeThread.java index 3ae6485..27a311d 100644 --- a/opends/src/server/org/opends/server/util/TimeThread.java +++ b/opends/src/server/org/opends/server/util/TimeThread.java @@ -91,7 +91,7 @@ private static int hourAndMinute; // The current time in milliseconds since the epoch. - private static long time; + private static volatile long time; // The date formatter that will be used to obtain the generalized time. private static SimpleDateFormat generalizedTimeFormatter; -- Gitblit v1.10.0