mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
The `need_switch` flag was not initialized in `event_post()`. Since it is
a local variable, it could contain a random non-zero value, leading to
incorrect behavior.
In addition, this patch also fixes an issue where the event clearing
operation in `event_post()` was not performed correctly.
Signed-off-by: Chengdong Wang wangchengdong@lixiang.com
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| event.h | ||
| event_clear.c | ||
| event_destroy.c | ||
| event_getmask.c | ||
| event_init.c | ||
| event_post.c | ||
| event_reset.c | ||
| event_wait.c | ||
| event_waitirq.c | ||
| Make.defs | ||