Semaphore.h 765 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <stdint.h>
  3. #include "il2cpp-config.h"
  4. #include "il2cpp-object-internals.h"
  5. struct Il2CppString;
  6. namespace il2cpp
  7. {
  8. namespace icalls
  9. {
  10. namespace System
  11. {
  12. namespace System
  13. {
  14. namespace Threading
  15. {
  16. class LIBIL2CPP_CODEGEN_API Semaphore
  17. {
  18. public:
  19. static intptr_t CreateSemaphore_internal40(int32_t initialCount, int32_t maximumCount, Il2CppString* name, int32_t* errorCode);
  20. static bool ReleaseSemaphore_internal40(intptr_t handlePtr, int32_t releaseCount, int32_t* previousCount);
  21. static intptr_t OpenSemaphore_internal(Il2CppString* name, int32_t rights, int32_t* error);
  22. };
  23. } /* namespace Threading */
  24. } /* namespace System */
  25. } /* namespace System */
  26. } /* namespace icalls */
  27. } /* namespace il2cpp */