AtomicImpl.h 244 B

12345678910111213141516171819
  1. #pragma once
  2. // Assumes clang or gcc as compiler.
  3. #if IL2CPP_TARGET_POSIX
  4. #include "os/c-api/Atomic-c-api.h"
  5. namespace il2cpp
  6. {
  7. namespace os
  8. {
  9. inline void Atomic::FullMemoryBarrier()
  10. {
  11. __sync_synchronize();
  12. }
  13. }
  14. }
  15. #endif