[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Exchange 2 integers in a thread-safe way
Source position: line 0
function InterLockedExchange( |
var Target: LongInt; |
Source: LongInt |
):LongInt; |
var Target: Pointer; |
Source: Pointer |
):Pointer; |
var Target: Cardinal; |
Source: Cardinal |
):Cardinal; |
InterLockedExchange stores Source in Target 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 |
|
|
Thread-safe add and exchange of 2 values |
|
|
Conditional exchange |
lazarus-ccr.sourceforge.net |