未验证 提交 77476028 编写于 作者: O openharmony_ci 提交者: Gitee

!1980 只解决binder缓存消息上送死锁问题

Merge pull request !1980 from 万欣/master
......@@ -49,12 +49,14 @@ static const int DEVICE_INFO_EXIT_TIMEOUT_MS = 3;
static void UnloadDeviceInfoSa(int signo)
{
std::unique_lock<std::mutex> lock(g_lock);
time_t currTime;
(void)time(&currTime);
if (difftime(currTime, g_lastTime) < DEVICE_INFO_EXIT_TIMEOUT_MS) {
alarm(DEVICE_INFO_EXIT_TIMEOUT_MS / 3); // 3 half
return;
{
std::unique_lock<std::mutex> lock(g_lock);
time_t currTime;
(void)time(&currTime);
if (difftime(currTime, g_lastTime) < DEVICE_INFO_EXIT_TIMEOUT_MS) {
alarm(DEVICE_INFO_EXIT_TIMEOUT_MS / 3); // 3 half
return;
}
}
DINFO_LOGI("DeviceInfoService::UnloadDeviceInfoSa");
auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册