mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
5676bf8227
There are cases that users do not want the event wait object to be allocated automatically in the stack as a temporary varialbe in nxevent_tickwait, since multiple threads will access the varialbe, they want to allocate the object as a global variable for safety control or easy debug. To solve this problem, this patch add a new function nxevent_tickwait_wait implementation to give user the chance to pass the global wait object to it. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>