mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 05:14:27 +08:00
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>