wangchdo opened a new pull request, #17644:
URL: https://github.com/apache/nuttx/pull/17644
## Summary
Signals in NuttX serve two primary purposes:
1. **Synchronization and wake-up**
Signals can be used to block threads on specific signal sets and later wake
them up by delivering the corresponding signals to those threads.
2. **Asynchronous notification**
Signals can also be used to register callback handlers for specific signals,
allowing threads to asynchronously invoke those handlers when the signals are
delivered.
The PR https://github.com/apache/nuttx/pull/17357
introduced the ability to disable only the synchronization and wake-up
functionality of signals, while retaining part of the signal infrastructure.
This allows moderate memory savings and performance improvements.
The PR https://github.com/apache/nuttx/pull/17352
introduced the ability to completely disable all signal functionality,
providing more aggressive memory reduction and performance optimization.
This PR consolidates the above two efforts and introduces a unified
mechanism that supports both:
1. **Partial signal disablement:** disabling only asynchronous notification
while retaining synchronization and wake-up functionality.
2. **Full signal disablement:** disabling both synchronization / wake-up and
asynchronous notification functionality.
This consolidation enables finer-grained control over signal usage, allowing
system integrators to better balance functionality, memory footprint, and
performance for different use cases.
## Impact
Provide configuration to fully or partially disable signals, should have no
impact to exist nuttx functions if
the configuration is not enabled
## Testing
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]