ConditionVariable.h 517 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #if NET_4_0
  3. #include "utils/NonCopyable.h"
  4. namespace il2cpp
  5. {
  6. namespace os
  7. {
  8. class FastMutex;
  9. class ConditionVariableImpl;
  10. class ConditionVariable : public il2cpp::utils::NonCopyable
  11. {
  12. public:
  13. ConditionVariable();
  14. ~ConditionVariable();
  15. int Wait(FastMutex* lock);
  16. int TimedWait(FastMutex* lock, uint32_t timeout_ms);
  17. void Broadcast();
  18. void Signal();
  19. private:
  20. ConditionVariableImpl* m_ConditionVariable;
  21. };
  22. }
  23. }
  24. #endif