Fix typo list_insert -> list_push_back for thread.child_results

This commit is contained in:
2024-11-08 03:55:34 +00:00
parent ec8547aec9
commit 7349b4e66f

View File

@@ -264,8 +264,8 @@ thread_create (const char *name, int priority,
intr_set_level (old_level);
/* No need to synchronise child_results since it is only ever accessed by one
thread. */
list_insert (&parent_thread->child_results, &t->result->elem);
thread. By the nature of increasing TIDs, this list is ordered. */
list_push_back (&parent_thread->child_results, &t->result->elem);
/* Add to run queue. */
thread_unblock (t);