| 141 | { return m_atomics.returnDb.load(std::memory_order_relaxed); } |
| 142 | |
| 143 | void ClientGate::setLookaheadMs(float ms) noexcept |
| 144 | { |
| 145 | m_atomics.lookaheadMs.store( |
| 146 | std::clamp(ms, 0.0f, static_cast<float>(kMaxLookaheadMs)), |
| 147 | std::memory_order_relaxed); |
| 148 | m_atomics.version.fetch_add(1, std::memory_order_release); |
| 149 | } |
| 150 | float ClientGate::lookaheadMs() const noexcept |
| 151 | { return m_atomics.lookaheadMs.load(std::memory_order_relaxed); } |
| 152 |
no outgoing calls