Hello,

Zhaoming Luo, le jeu. 19 déc. 2024 10:01:26 +0800, a ecrit:
> +     do {
> +         read_elapsed_ticks = elapsed_ticks;
> +     } while (read_elapsed_ticks != check_elapsed_ticks);

You don't need to use a separate field. You can just use an atomic
operation to make sure to read the field in one go.

Samuel

Reply via email to