il2cpp-sanitizers.h 311 B

12345678910111213
  1. #pragma once
  2. // Use this attribute to disable the thread sanitizer checks for a specific method.
  3. #if defined(__has_feature)
  4. #if __has_feature(thread_sanitizer)
  5. #define IL2CPP_DISABLE_TSAN __attribute__((no_sanitize("thread")))
  6. #else
  7. #define IL2CPP_DISABLE_TSAN
  8. #endif
  9. #else
  10. #define IL2CPP_DISABLE_TSAN
  11. #endif