Hacker News new | past | comments | ask | show | jobs | submit login

Sure, but if we’re talking a 32bit system, a magic number can be your final atomic.

Agreed. If you were talking an 8bit system, you could 32bit CRC your actual data. Even though the CRC would be 32bits and 4 stores, it wouldn’t be “set” until the final atomic write.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact