|
<< Click to Display Table of Contents >> Navigation: Classes > TIWInterlocked > Methods > IncrementIfLessThan |
SIGNATURE=IW.Common.Interlocked.TIWInterlocked.IncrementIfLessThan@Integer@Integer
ETYPE=Method
Declaration:
Delphi: |
public class function IncrementIfLessThan(var Target: Integer; Threshold: Integer): Boolean; static; |
C++: |
public: static __fastcall bool IncrementIfLessThan(int Target, int Threshold); |
Description: Performs an atomic read of Target 32-bit variable by using a CompareExchange operation If LTarget <= Threashold => Increments LTarget and returns True, otherwise returns False