EventImpl.h 595 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #if IL2CPP_THREADS_WIN32
  3. #include "os/ErrorCodes.h"
  4. #include "os/WaitStatus.h"
  5. #include "utils/NonCopyable.h"
  6. #include "WindowsHeaders.h"
  7. namespace il2cpp
  8. {
  9. namespace os
  10. {
  11. class EventImpl : public il2cpp::utils::NonCopyable
  12. {
  13. public:
  14. EventImpl(bool manualReset = false, bool signaled = false);
  15. ~EventImpl();
  16. ErrorCode Set();
  17. ErrorCode Reset();
  18. WaitStatus Wait(bool interruptible);
  19. WaitStatus Wait(uint32_t ms, bool interruptible);
  20. void* GetOSHandle();
  21. private:
  22. HANDLE m_Event;
  23. };
  24. }
  25. }
  26. #endif