https://en.m.wikipedia.org/wiki/Lamport%27s_bakery_algorithm
Thread safety without synchronisation primitives. I'm not sure it's ever actually a good idea to use it, though.
EDIT: unless you count a fence as a synchronisation primitive.