wangzhi-art opened a new pull request, #15391: URL: https://github.com/apache/nuttx/pull/15391
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary ### Why the old code is not needed anymore? There is a variable tcb->sigdeliver in the current tcb structure, which is used to determine whether there is a new signal to be processed. When there is a signal to be processed, the address of the nxsig_deliver function will be assigned to tcb->sigdeliver. At the same time, if there are other signals to be processed, it will first determine whether the value of tcb->sigdeliver is empty. All signal processing is in the nxsig_deliver function, so we can call this function directly; and when judging whether there is a new signal to be delivered, we can add a flag bit TCB_FLAG_SIGDELIVER in tcb->flags. Only one bit is needed to achieve the previous effect, which optimizes both execution time and space. ### Is there some drawback after removing these lines of code? There are no drawback so far. ## Impact None. ## Testing Testcase ostest is executed without failure in the smp environment of armv7a and armv8a. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org