Thread.cpp 330 B

123456789101112131415161718
  1. #include "os/c-api/il2cpp-config-platforms.h"
  2. #if !RUNTIME_TINY
  3. #include "Thread-c-api.h"
  4. #include "os/Thread.h"
  5. void UnityPalSleep(uint32_t milliseconds)
  6. {
  7. il2cpp::os::Thread::Sleep(milliseconds, false);
  8. }
  9. UnityPalThreadId UnityPalGetCurrentThreadId()
  10. {
  11. return il2cpp::os::Thread::GetCurrentThread()->Id();
  12. }
  13. #endif