unified: Rationalize thread priority APIs
* Gets rid of k_current_priority_get(). Users can just call k_thread_priority_get(k_current_get()) instead. * Declares k_thread_priority_get() in kernel.h, where it really belongs. * Removes duplicate declaration of k_thread_priority_set(). Change-Id: I616ae6f2e06c95ecba3b92324186b3fa29162fd1 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
parent
b03955033b
commit
399d0ad55a
6 changed files with 11 additions and 26 deletions
|
@ -119,7 +119,6 @@ extern void k_busy_wait(uint32_t usec_to_wait);
|
|||
extern void k_yield(void);
|
||||
extern void k_wakeup(k_tid_t thread);
|
||||
extern k_tid_t k_current_get(void);
|
||||
extern int k_current_priority_get(void);
|
||||
extern int k_thread_cancel(k_tid_t thread);
|
||||
|
||||
extern void k_thread_abort(k_tid_t thread);
|
||||
|
@ -201,7 +200,7 @@ struct _static_thread_data {
|
|||
K_THREAD_INITIALIZER(_k_thread_obj_##name, stack_size, \
|
||||
entry, p1, p2, p3, abort, prio, groups)
|
||||
|
||||
/* extern int k_thread_prio_get(k_tid_t thread); in sched.h */
|
||||
extern int k_thread_priority_get(k_tid_t thread);
|
||||
extern void k_thread_priority_set(k_tid_t thread, int prio);
|
||||
|
||||
extern void k_thread_suspend(k_tid_t thread);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue