Update thread creation to yield thread in case it's no longer the highest priority
This commit is contained in:
@@ -219,6 +219,7 @@ thread_create (const char *name, int priority,
|
||||
|
||||
/* Add to run queue. */
|
||||
thread_unblock (t);
|
||||
thread_yield ();
|
||||
|
||||
return tid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user