MCPcopy Create free account
hub / github.com/Norbyte/bg3se / AtomicSet

Method AtomicSet

CoreLib/Base/BaseArray.h:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 }
215
216 inline bool AtomicSet(uint32_t index)
217 {
218 if (index >= NumBits) {
219 return false;
220 }
221
222 InterlockedOr64((LONG64*)(Bits + (index >> IndexBitsPerWord)), (TWord(1) << (index & (BitsPerWord - 1))));
223 return true;
224 }
225
226 inline bool Clear(uint32_t index)
227 {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected