unified: align prototype and definition of k_thread_priority_set
Change-Id: I7299ded2fc66acb5806499ea26e1e5daedc7cc9c Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
45616f24e7
commit
3751123fa9
1 changed files with 2 additions and 1 deletions
|
@ -222,10 +222,11 @@ int k_thread_priority_get(k_tid_t thread)
|
|||
}
|
||||
|
||||
/* application API: change a thread's priority. Not callable from ISR */
|
||||
void k_thread_priority_set(struct k_thread *thread, int prio)
|
||||
void k_thread_priority_set(k_tid_t tid, int prio)
|
||||
{
|
||||
__ASSERT(!_is_in_isr(), "");
|
||||
|
||||
struct k_thread *thread = (struct k_thread *)tid;
|
||||
int key = irq_lock();
|
||||
|
||||
_thread_priority_set(thread, prio);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue