Semaphore.h 725 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "il2cpp-object-internals.h"
  3. namespace il2cpp
  4. {
  5. namespace icalls
  6. {
  7. namespace System
  8. {
  9. namespace System
  10. {
  11. namespace Threading
  12. {
  13. class LIBIL2CPP_CODEGEN_API Semaphore
  14. {
  15. public:
  16. static bool ReleaseSemaphore_internal(intptr_t handle, int32_t releaseCount, int32_t* previousCount);
  17. static intptr_t CreateSemaphore_icall(int32_t initialCount, int32_t maximumCount, Il2CppChar* name, int32_t name_length, int32_t* errorCode);
  18. static intptr_t OpenSemaphore_icall(Il2CppChar* name, int32_t name_length, int32_t rights, int32_t* errorCode);
  19. };
  20. } /* namespace Threading */
  21. } /* namespace System */
  22. } /* namespace System */
  23. } /* namespace icalls */
  24. } /* namespace il2cpp */