Examples of atomic primitives and their cross platform implementations