ConditionVariableImpl.h 563 B

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