Implementing a Spinlock in C++ | Hacker News Reader