![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Functions | |
| template<typename IntegerType > | |
| void | LockFreePeak (volatile IntegerType *PeakValue, IntegerType NewSample) |
Helper functions for wrapping async functionality.
Additional atomic functionality
| void BuildPatchServices::AsyncHelpers::LockFreePeak | ( | volatile IntegerType * | PeakValue, |
| IntegerType | NewSample | ||
| ) |
LockFreePeak will set the destination value, to NewSample, if NewSample is higher. This works by spinning on InterlockedCompareExchange. For other usage examples see reference code in GenericPlatformAtomics.h
| PeakValue | The destination variable to set. |
| NewSample | The sample to set with if higher. |