MCPcopy Create free account
hub / github.com/carbonengine/trinity / AtomicMinUpdate

Function AtomicMinUpdate

trinity/Resources/TriTextureRes.cpp:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void AtomicMinUpdate( std::atomic<uint32_t>& a, uint32_t b )
120{
121 uint32_t prev = a;
122 while( prev > b && !a.compare_exchange_weak( prev, b ) )
123 {
124 }
125}
126
127} // end of anonymous namespace
128

Callers 2

RequestResolutionMethod · 0.85
UpdateLodRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected