MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / HasInvalidThreadContext

Method HasInvalidThreadContext

Sources/Shared/Core/Logger.cpp:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected