如果收购过程中被杀死的局部唤醒锁会发生什么? [英] What happens with the partial wake lock if the process that acquires is killed?

查看:126
本文介绍了如果收购过程中被杀死的局部唤醒锁会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否得到自动释放,如果它被杀死之前没有发布的过程吗?

Does it get released automatically if the process didn't released before it was killed?

推荐答案

该激活锁定是,如果进程被杀死释放。您可以通过以下方法检查此

The wakelock is released if Process is killed. You can check this by below method

获取一个激活锁定,然后运行

Acquire a wakelock and then run

  adb shell dumpsys power

从杀DDMS的过程。再次运行dumpsys电力

kill the process from ddms. Again run dumpsys power

您可以看到mlocks.size又回到0。

You can see that the mlocks.size is back to 0.

这篇关于如果收购过程中被杀死的局部唤醒锁会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆