PLAT-484: commented barriers and use of std::atomic