minor fix

This commit is contained in:
TXuian
2024-12-24 16:48:52 +08:00
parent 74da96e1f1
commit 6b636dfde0
4 changed files with 11 additions and 49 deletions
+2 -2
View File
@@ -185,7 +185,7 @@ static void _free_thread(struct Thread* task)
if (task->memspace->thread_to_notify != NULL) {
if (task->memspace->thread_to_notify != task) {
if (task->memspace->thread_to_notify->snode.state == BLOCKED) {
THREAD_TRANS_STATE(task->memspace->thread_to_notify, READY);
THREAD_TRANS_STATE(task->memspace->thread_to_notify, TRANS_WAKING);
} else {
task->memspace->thread_to_notify->advance_unblock = true;
}
@@ -323,7 +323,7 @@ static void central_trans_task_state()
if (snode->state == RUNNING || snode->state == READY) {
task_into_ready(thd);
} else {
ERROR("Thread %s(%d) Error trans to READY\n", thd->name, thd->tid);
ERROR("Thread %s(%d) Error trans to READY(from %d)\n", thd->name, thd->tid, snode->state);
}
break;
}