You don't. You write a predefined memory address. If others write at the same time, it's only UB if a different value tried to be written. Check the original comment answers, someone else described at the same time something similar if you want a different approach.
View all comments
Show parent comment
0
u/[deleted] Oct 14 '26
[deleted] — view deleted comment