nano_lifo: Simplify nano_xxx_lifo_get() API family
Changes the nanokernel LIFO API so that the timeout parameter must be specified when invoking nano_isr_lifo_get(), nano_fiber_lifo_get(), nano_task_lifo_get() and nano_lifo_get(). This obsoletes the following APIs: nano_fiber_lifo_get_wait() nano_fiber_lifo_get_wait_timeout() nano_task_lifo_get_wait() nano_task_lifo_get_wait_timeout() nano_lifo_get_wait() nano_lifo_get_wait_timeout() Change-Id: Ie9f93e46da42ea33c32544c02ab1d70b893cc198 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
54b782a88b
commit
f0b55aa624
12 changed files with 143 additions and 356 deletions
|
@ -139,7 +139,7 @@ SECTION_FUNC(TEXT, nano_cpu_idle)
|
|||
* @brief Atomically re-enable interrupts and enter low power mode
|
||||
*
|
||||
* This function is utilized by the nanokernel object "wait" APIs for tasks,
|
||||
* e.g. nano_task_lifo_get_wait(), nano_task_sem_take(),
|
||||
* e.g. nano_task_lifo_get(), nano_task_sem_take(),
|
||||
* nano_task_stack_pop_wait(), and nano_task_fifo_get().
|
||||
*
|
||||
* INTERNAL
|
||||
|
@ -147,7 +147,7 @@ SECTION_FUNC(TEXT, nano_cpu_idle)
|
|||
* 1) The enablement of interrupts and entering a low-power mode needs to be
|
||||
* atomic, i.e. there should be no period of time where interrupts are
|
||||
* enabled before the processor enters a low-power mode. See the comments
|
||||
* in nano_task_lifo_get_wait(), for example, of the race condition that occurs
|
||||
* in nano_task_lifo_get(), for example, of the race condition that occurs
|
||||
* if this requirement is not met.
|
||||
*
|
||||
* 2) After waking up from the low-power mode, the interrupt lockout state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue