kernel: Add _unpend_all convenience wrapper to scheduler API
Refactoring. Mempool wants to unpend all threads at once. It's cleaner to do this in the scheduler instead of the IPC code. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
39f396a8ad
commit
4ca0e07088
3 changed files with 14 additions and 7 deletions
|
@ -43,6 +43,7 @@ void _pend_thread(struct k_thread *thread, _wait_q_t *wait_q, s32_t timeout);
|
|||
int _reschedule(int key);
|
||||
struct k_thread *_unpend_first_thread(_wait_q_t *wait_q);
|
||||
void _unpend_thread(struct k_thread *thread);
|
||||
void _unpend_all(_wait_q_t *wait_q);
|
||||
void _thread_priority_set(struct k_thread *thread, int prio);
|
||||
void *_get_next_switch_handle(void *interrupted);
|
||||
struct k_thread *_find_first_thread_to_unpend(_wait_q_t *wait_q,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue