| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <nn/os/detail/os_InternalCriticalSection.h> |
| 4 | #include <nn/os/os_ConditionVariableCommon.h> |
| 5 | #include <nn/types.h> |
| 6 | |
| 7 | namespace nn::os::detail { |
| 8 | |
| 9 | class TimeoutHelper; |
| 10 | |
| 11 | class InternalConditionVariableImplByHorizon { |
| 12 | public: |
| 13 | InternalConditionVariableImplByHorizon(); |
| 14 | void Initialize(); |
| 15 | void Signal(); |
| 16 | void Broadcast(); |
| 17 | void Wait(InternalCriticalSection*); |
| 18 | ConditionVariableStatus TimedWait(InternalCriticalSection*, const TimeoutHelper&); |
| 19 | |
| 20 | private: |
| 21 | uint32_t m_Value; |
| 22 | }; |
| 23 | |
| 24 | typedef InternalConditionVariableImplByHorizon InternalConditionVariableImpl; |
| 25 | |
| 26 | } // namespace nn::os::detail |