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

Merged
td1223 merged 1 commits from task1/themis/thread-create-refactor into master 2024-10-25 16:56:32 +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;