diff --git a/services/src/client_info.cpp b/services/src/client_info.cpp index f70d9e6d56e7e228249132721fcd610637c33749..4f9b6daa03348e4ff30a7b8748a23b2b4a1af903 100644 --- a/services/src/client_info.cpp +++ b/services/src/client_info.cpp @@ -730,6 +730,7 @@ int32_t ClientInfo::DelActiveInfoCBPid(int32_t pid) std::vector ClientInfo::GetActiveInfoCBPid() { std::vector activeInfoCBPids; + std::lock_guard activeInfoCBPidLock(activeInfoCBPidMutex_); for (auto it = activeInfoCBPidSet_.begin(); it != activeInfoCBPidSet_.end(); ++it) { activeInfoCBPids.push_back(*it); }