Index: source/i18n/chnsecal.cpp |
diff --git a/source/i18n/chnsecal.cpp b/source/i18n/chnsecal.cpp |
index 893f9f6cacc24e8087527fc94755be09e819c983..5d6ded09a0f126db9cbb86c9325b42d31655cfaf 100644 |
--- a/source/i18n/chnsecal.cpp |
+++ b/source/i18n/chnsecal.cpp |
@@ -1,6 +1,6 @@ |
/* |
****************************************************************************** |
- * Copyright (C) 2007-2013, International Business Machines Corporation |
+ * Copyright (C) 2007-2014, International Business Machines Corporation |
* and others. All Rights Reserved. |
****************************************************************************** |
* |
@@ -49,10 +49,13 @@ static void debug_chnsecal_msg(const char *pat, ...) |
// --- The cache -- |
-static UMutex astroLock = U_MUTEX_INITIALIZER; // pod bay door lock |
+static UMutex astroLock = U_MUTEX_INITIALIZER; // Protects access to gChineseCalendarAstro. |
static icu::CalendarAstronomer *gChineseCalendarAstro = NULL; |
+ |
+// Lazy Creation & Access synchronized by class CalendarCache with a mutex. |
static icu::CalendarCache *gChineseCalendarWinterSolsticeCache = NULL; |
static icu::CalendarCache *gChineseCalendarNewYearCache = NULL; |
+ |
static icu::TimeZone *gChineseCalendarZoneAstroCalc = NULL; |
static icu::UInitOnce gChineseCalendarZoneAstroCalcInitOnce = U_INITONCE_INITIALIZER; |