sebastianene07 opened a new pull request #1703:
URL: https://github.com/apache/incubator-nuttx/pull/1703
## Summary of Changes
The `ucontext` API allows us to jump from the signal handler without
altering the
handler's execution flow. A new host API is introduced:
getcontext()/setcontext()/swapcontext()/makecontext().
This feature can be enabled by setting CONFIG_SIM_UCONTEXT_PREEMPTION=y.
This is a continuation of the work done here:
https://github.com/apache/incubator-nuttx/pull/1663
## Impact
When the option `CONFIG_SIM_UCONTEXT_PREEMPTION` is not enabled the patch is
using the previous mechanism :
`setjmp/longjmp` and is not altering the original functionality.
Signed-off-by: Sebastian Ene <[email protected]>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]