X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..1546d4af2ed1219a41ef4170bf188f2ab91442e6:/icuSources/common/servnotf.cpp?ds=sidebyside diff --git a/icuSources/common/servnotf.cpp b/icuSources/common/servnotf.cpp index 6adf52ec..dc77c7b8 100644 --- a/icuSources/common/servnotf.cpp +++ b/icuSources/common/servnotf.cpp @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /** ******************************************************************************* - * Copyright (C) 2001-2006, International Business Machines Corporation and * + * Copyright (C) 2001-2012, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -19,10 +21,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 +34,6 @@ ICUNotifier::~ICUNotifier(void) { delete listeners; listeners = NULL; } - umtx_destroy(¬ifyLock); }