Merge branch 'task1/themis/thread-create-refactor' into 'master'

Refactor thread_create () to call thread_get_priority in order to retrieve priority

See merge request lab2425_autumn/pintos_22!21
This commit is contained in:
Saleh Bubshait
2024-10-25 16:56:31 +00:00

View File

@@ -264,7 +264,7 @@ thread_create (const char *name, int priority,
/* Yield if the newly created thread has higher priority than the current
thread. */
if (t->priority > thread_current ()->priority)
if (t->priority > thread_get_priority ())
thread_yield ();
return tid;