mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-23 06:20:01 +00:00
update napi/settings/napi_settings_observer.cpp.
Signed-off-by: 侯志雄 <houzhixiong1@h-partners.com>
This commit is contained in:
parent
6081b2eb00
commit
084ade7c07
@ -46,6 +46,7 @@ namespace Settings {
|
||||
}
|
||||
|
||||
bool IsExistObserver(SettingsObserver* settingsObserver) {
|
||||
std::lock_guard<std::mutex> lockGuard(g_observerMapMutex);
|
||||
for (auto it = g_observerMap.begin(); it != g_observerMap.end(); ++it) {
|
||||
if (&(*(it->second)) == settingsObserver) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user