Add an atomic_flag implementation.
Merge pull request #145 from unknownbrackets/atomic

Add an atomic_flag implementation