mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
dd307ab82c
Prevent compiler reordering that may read stale value of once_control->done. Use volatile to ensure visibility across threads and prevent incorrect once initialization. Signed-off-by: yukangzhi <yukangzhi@xiaomi.com>