Thread-safe add and exchange of 2 values.
Source position: systemh.inc line 1597
function InterlockedExchangeAdd( |
var Target: LongInt; |
Source: LongInt |
):LongInt; |
var Target: Pointer; |
Source: Pointer |
):Pointer; |
var Target: Cardinal; |
Source: Cardinal |
):Cardinal; |
InterLockedExchangeAdd adds to Target the value of Source in a thread-safe way, and returns the old value of Target.This is done in a thread-safe way, i.e., only one processor is accessing the Target variable at a time.
None.
|
Thread-safe decrement. |
|
|
Thread-safe increment. |
|
|
Exchange 2 integers in a thread-safe way. |
|
|
Conditional exchange. |