X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/common/servnotf.cpp diff --git a/icuSources/common/servnotf.cpp b/icuSources/common/servnotf.cpp index 6adf52ec..dbcbe92d 100644 --- a/icuSources/common/servnotf.cpp +++ b/icuSources/common/servnotf.cpp @@ -1,6 +1,6 @@ /** ******************************************************************************* - * Copyright (C) 2001-2006, International Business Machines Corporation and * + * Copyright (C) 2001-2012, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -19,10 +19,11 @@ U_NAMESPACE_BEGIN EventListener::~EventListener() {} UOBJECT_DEFINE_RTTI_IMPLEMENTATION(EventListener) +static UMutex notifyLock = U_MUTEX_INITIALIZER; + ICUNotifier::ICUNotifier(void) -: notifyLock(0), listeners(NULL) +: listeners(NULL) { - umtx_init(¬ifyLock); } ICUNotifier::~ICUNotifier(void) { @@ -31,7 +32,6 @@ ICUNotifier::~ICUNotifier(void) { delete listeners; listeners = NULL; } - umtx_destroy(¬ifyLock); }