修改bug:C/C++读写锁/信号量死锁检测密码输入错误时同时提示未发现死锁和密码错误
This commit is contained in:
parent
cfde14890a
commit
52f67ab4b9
|
@ -304,23 +304,31 @@ export default {
|
|||
}else{
|
||||
if (event.data.res.CmdType == 1) {
|
||||
if(this.c_dead_type == 3){
|
||||
if(event.data.res.shuaxin == true){
|
||||
this.loading1 = false;
|
||||
if(event.data.res.wrongpasswd == true){
|
||||
this.$message({
|
||||
message: "密码错误!",
|
||||
})
|
||||
this.local_thread_data = ''
|
||||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
if(event.data.res.wrongpid == true){
|
||||
this.$message({
|
||||
message: "进程号不存在或错误!",
|
||||
})
|
||||
}
|
||||
if(event.data.res.wrongpasswd == true){
|
||||
this.$message({
|
||||
message: "密码错误!",
|
||||
})
|
||||
}
|
||||
}
|
||||
if(event.data.res.semflag == true){
|
||||
}else if(event.data.res.wrongpid == true){
|
||||
this.$message({
|
||||
message: "进程号不存在或错误!",
|
||||
})
|
||||
this.local_thread_data = ''
|
||||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
}else{
|
||||
if(event.data.res.shuaxin == true){
|
||||
this.local_thread_data = ''
|
||||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
}
|
||||
if(event.data.res.semflag == true){
|
||||
this.local_thread_data = ''
|
||||
console.log("发现信号量死锁:",event.data.res.blockedThread)
|
||||
Object.keys(event.data.res.blockedThread).forEach((threadLwp) => {
|
||||
|
@ -337,7 +345,7 @@ export default {
|
|||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
|
||||
}else{
|
||||
}else{
|
||||
this.loading1 = false;
|
||||
console.log("未发现信号量死锁:",this.local_thread_data)
|
||||
this.local_thread_data = ''
|
||||
|
@ -347,25 +355,34 @@ export default {
|
|||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
}
|
||||
}
|
||||
}else if(this.c_dead_type == 2){
|
||||
if(event.data.res.shuaxin == true){
|
||||
this.loading1 = false;
|
||||
if(event.data.res.wrongpasswd == true){
|
||||
this.$message({
|
||||
message: "密码错误!",
|
||||
})
|
||||
this.local_thread_data = ''
|
||||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
if(event.data.res.wrongpid == true){
|
||||
this.$message({
|
||||
message: "进程号不存在或错误!",
|
||||
})
|
||||
}
|
||||
if(event.data.res.wrongpasswd == true){
|
||||
this.$message({
|
||||
message: "密码错误!",
|
||||
})
|
||||
}
|
||||
}
|
||||
if(event.data.res.rwflag == true){
|
||||
}else if(event.data.res.wrongpid == true){
|
||||
this.$message({
|
||||
message: "进程号不存在或错误!",
|
||||
})
|
||||
this.local_thread_data = ''
|
||||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
}else{
|
||||
if(event.data.res.shuaxin == true){
|
||||
this.local_thread_data = ''
|
||||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
}
|
||||
if(event.data.res.rwflag == true){
|
||||
this.thread_info = [];
|
||||
this.local_thread_data = '';
|
||||
let temp_array = [];
|
||||
|
@ -445,7 +462,7 @@ export default {
|
|||
|
||||
}
|
||||
}
|
||||
}else{
|
||||
}else{
|
||||
console.log("未发现读写锁死锁:",this.local_thread_data)
|
||||
this.$message({
|
||||
message: "未发现读写锁死锁!",
|
||||
|
@ -454,6 +471,7 @@ export default {
|
|||
this.thread_info = []
|
||||
let echartsData=this.getdeadgraphData(this.thread_info);
|
||||
this.deadgraph(echartsData);
|
||||
}
|
||||
}
|
||||
}else if(this.c_dead_type == 1 ){
|
||||
if(event.data.res.openkylin == true || event.data.res.sys =="armserver"){
|
||||
|
|
Loading…
Reference in New Issue