This should be calling atomic_read().  I doubt it compiles on windows.