libgomp: Implementing ATOMIC construct

1 
1 9.3 Implementing ATOMIC construct
1 =================================
1 
1 The target should implement the '__sync' builtins.
1 
1    Failing that we could add
1 
1        void GOMP_atomic_enter (void)
1        void GOMP_atomic_exit (void)
1 
1    which reuses the regular lock code, but with yet another lock object
1 private to the library.
1