mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-04 05:22:25 +00:00
add bussiness thread freeze detection
Signed-off-by: hhl <yinhuiling@huawei.com>
This commit is contained in:
parent
e6edca1118
commit
d7854d7c9d
@ -114,7 +114,7 @@ int AppfreezeInner::AppfreezeHandle(const FaultData& faultData, bool onlyMainThr
|
||||
bool AppfreezeInner::IsExitApp(const std::string& name)
|
||||
{
|
||||
if (name == AppFreezeType::THREAD_BLOCK_6S || name == AppFreezeType::APP_INPUT_BLOCK ||
|
||||
name == AppFreezeType::LIFECYCLE_TIMEOUT) {
|
||||
name == AppFreezeType::LIFECYCLE_TIMEOUT || name == AppFreezeType::BUSSINESS_THREAD_BLOCK_6S) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -47,6 +47,8 @@ public:
|
||||
static constexpr char THREAD_BLOCK_3S[] = "THREAD_BLOCK_3S";
|
||||
static constexpr char THREAD_BLOCK_6S[] = "THREAD_BLOCK_6S";
|
||||
static constexpr char APP_INPUT_BLOCK[] = "APP_INPUT_BLOCK";
|
||||
static constexpr char BUSSINESS_THREAD_BLOCK_3S[] = "BUSSINESS_THREAD_BLOCK_3S";
|
||||
static constexpr char BUSSINESS_THREAD_BLOCK_6S[] = "BUSSINESS_THREAD_BLOCK_6S";
|
||||
};
|
||||
/**
|
||||
* @struct FaultData
|
||||
|
Loading…
Reference in New Issue
Block a user