wangchdo commented on code in PR #17223:
URL: https://github.com/apache/nuttx/pull/17223#discussion_r2467756521
##########
include/nuttx/event.h:
##########
@@ -73,7 +73,6 @@ struct nxevent_s
{
struct list_node list; /* Waiting list of nxevent_wait_t */
volatile nxevent_mask_t events; /* Pending Events */
- spinlock_t lock; /* Spinlock */
Review Comment:
Besides, if you check [PR #17244](https://github.com/apache/nuttx/pull/17244)
, you’ll see that removing the semaphore also provides an opportunity to
eliminate the wait object used by event-waiting tasks. Removing the wait object
not only reduces memory usage but also makes the event mechanism safer and the
API cleaner and more straightforward.
--
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]