diff --git a/services/tel_ril/src/tel_ril_base.cpp b/services/tel_ril/src/tel_ril_base.cpp index cde87b5c5..8bb484429 100644 --- a/services/tel_ril/src/tel_ril_base.cpp +++ b/services/tel_ril/src/tel_ril_base.cpp @@ -22,7 +22,7 @@ namespace Telephony { std::atomic_int TelRilBase::nextSerialId_(1); std::unordered_map> TelRilBase::requestMap_; std::mutex TelRilBase::requestLock_; -std::mutex idleLock_; +std::mutex dealLock_; std::shared_ptr TelRilBase::handler_; TelRilBase::TelRilBase(int32_t slotId, sptr rilInterface, @@ -34,13 +34,13 @@ TelRilBase::TelRilBase(int32_t slotId, sptr rilInterface, void TelRilBase::ResetRilInterface(sptr rilInterface) { - std::lock_guard lock(idleLock_); + std::lock_guard lock(dealLock_); rilInterface_ = rilInterface; } sptr TelRilBase::GetRilInterface() { - std::lock_guard lock(idleLock_); + std::lock_guard lock(dealLock_); return rilInterface_; }