mirror of
https://github.com/apache/nuttx.git
synced 2026-02-05 19:56:43 +08:00
Some checks failed
Build Documentation / build-html (push) Has been cancelled
This commit refactors nxsched_waitpid() by extracting the core waiting logic into a separate waittcb() helper function. This change significantly reduces the cyclomatic complexity of the main function while preserving all original functionality and improving code maintainability with better separation of concerns between initialization and wait handling logic. Signed-off-by: hujun5 <hujun5@xiaomi.com>