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

Add an atomic_flag implementation
Merge remote-tracking branch 'upstream/master' into mydev
want the changes to native made by unknown brackets [unknown]
corrected bugs in the atomic_flag class
fixed bugs in the atomic_flag class