added comment about memory barriers