wangchdo opened a new pull request, #16942:
URL: https://github.com/apache/nuttx/pull/16942

   
    There are cases that user do not want the event wait object to be allocated 
automatically
    in the stack as a temporary variable in nxevent_tickwait, since multiple 
threads will
    access the variable, they want to allocate the object as a global variable 
for safety
    control or easy debug. To solve this problem, this patch updated the 
nvevent_tickwait
    implementaion to give user the chance to  pass the global wait object to it.
   
     sched/event/event_wait.c:
       add one more nxevent_wait_t *wait param to nvevent_tickwait.
       nxevent_trywait create a temprary wait variable and then pass it to 
nxevent_wait_t.
       nxevent_wait create a temprary wait variable and then pass it to 
nxevent_wait_t.
   
   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   There are cases that user do not want the event wait object to be allocated 
automatically
    in the stack as a temporary variable in nxevent_tickwait, since multiple 
threads will
    access the variable, they want to allocate the object as a global variable 
for safety
    control or easy debug. To solve this problem, this patch updated the 
nvevent_tickwait
    implementaion to give user the chance to  pass the global wait object to it.
   
   ## Impact
   
   No impact to nuttx's existing function but let event module to be more 
easily to use
   
   ## Testing
   
   ostest will cover the testing of this update
   
   
   


-- 
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

Reply via email to