SynchronizationContext.h 384 B

123456789101112131415161718192021
  1. #pragma once
  2. #if IL2CPP_HAS_OS_SYNCHRONIZATION_CONTEXT
  3. namespace il2cpp
  4. {
  5. namespace os
  6. {
  7. class SynchronizationContext
  8. {
  9. public:
  10. static Il2CppObject* GetForCurrentThread();
  11. static void Post(Il2CppObject* context, SynchronizationContextCallback callback, intptr_t arg);
  12. static void Initialize();
  13. static void Shutdown();
  14. };
  15. }
  16. }
  17. #endif