wangchdo opened a new pull request, #16990:
URL: https://github.com/apache/nuttx/pull/16990
Change:
Replace list_delete_init() with list_delete() in nxevent_post.
Reason:
PR 16933 removed list_delete() in nxevent_wait() and allow other task
to preempt event-wait thread after list_add_tail() option, the
even-post thread
can preempt it at this time and do list_delete_init().
The problem is that list_delete_init() will make list_in_list() return
true, so
DEBUGASSERT(!list_in_list(&(wait->node))); will fail in nxevent_wait()
after the event-wait thread
returns.
Signed-off-by: Chengdong Wang <[email protected]>
*Note: Please adhere to [Contributing
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
## Summary
Fix the bug in nxevent module, refer to the commit message for detail.
## Impact
Fix the nxevent bug, no impact to other modules.
## Testing
**use a2g-tc397-5v-tft to run ostest**
**before the fix patch**
<img width="1172" height="426" alt="image"
src="https://github.com/user-attachments/assets/f3d121a4-98b4-4ec7-8000-4a3788977c7a"
/>
**after the fix patch**
<img width="781" height="758" alt="image"
src="https://github.com/user-attachments/assets/4c411d82-7fc8-4ca7-b59b-9f5dd8a35949"
/>
--
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]