| 190 | } |
| 191 | |
| 192 | bool ThreadContextManager::HasInvalidThreadContext() const noexcept |
| 193 | { |
| 194 | // Here we do relaxed, because if the value is not zero, we will look inside ThreadContext invalid flag that is |
| 195 | // also a relaxed atomic, and then we will look into the SPSC queue size that is also atomic. Even if we don't |
| 196 | // read everything in order, we will check again in the next circle. |
| 197 | return _invalidThreadContextCount.load(std::memory_order_relaxed) != 0; |
| 198 | } |
| 199 | |
| 200 | bool ThreadContextManager::HasNewThreadContext() noexcept |
| 201 | { |
no test coverage detected