EventImpl.h 566 B

1234567891011121314151617181920212223242526272829303132
  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. private:
  21. HANDLE m_Event;
  22. };
  23. }
  24. }
  25. #endif