/**
*******************************************************************************
- * Copyright (C) 2001-2002, International Business Machines Corporation and *
+ * Copyright (C) 2001-2003, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
#if !UCONFIG_NO_SERVICE
#include "icunotif.h"
+#if DEBUG
#include <stdio.h>
+#endif
U_NAMESPACE_BEGIN
-const char EventListener::fgClassID = '\0';
+EventListener::~EventListener() {}
+UOBJECT_DEFINE_RTTI_IMPLEMENTATION(EventListener)
+
+ICUNotifier::ICUNotifier(void)
+ : notifyLock(0), listeners(NULL)
+{
+ umtx_init(¬ifyLock);
+}
+
+ICUNotifier::~ICUNotifier(void) {
+ {
+ Mutex lmx(¬ifyLock);
+ delete listeners;
+ listeners = NULL;
+ }
+ umtx_destroy(¬ifyLock);
+}
+
void
ICUNotifier::addListener(const EventListener* l, UErrorCode& status)
}
}
-U_NAMESPACE_END;
+U_NAMESPACE_END
/* UCONFIG_NO_SERVICE */
#endif