Thread-c-api.h 374 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <stdint.h>
  3. #if defined(__cplusplus)
  4. #include "os/Thread.h"
  5. typedef il2cpp::os::Thread::ThreadId UnityPalThreadId;
  6. #else
  7. typedef size_t UnityPalThreadId;
  8. #endif //__cplusplus
  9. #if defined(__cplusplus)
  10. extern "C"
  11. {
  12. #endif
  13. void UnityPalSleep(uint32_t milliseconds);
  14. UnityPalThreadId UnityPalGetCurrentThreadId();
  15. #if defined(__cplusplus)
  16. }
  17. #endif