JCL Help:LockedExchangeAdd@Int64@Int64
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: LockedExchangeAdd Function
[+] JclSynch.pas Functions
Search in JCL Help
Search in all projects
Summary
Thread safe addition.
Pascal
function LockedExchangeAdd(var Target: Integer; Value: Integer): Integer; overload;
function LockedExchangeAdd(var Target: Int64; Value: Int64): Int64; overload;
Parameters
Parameters | Description |
var Target: Integer | The target variable to add Value to. |
Value: Integer | The value to add to Target |
Return Value
The value of Target before the addition.
Description
LockedExchangeAdd implements threadsafe addition for integers. The function adds Value to Target and returns the previous value of Target. The LockedXxx functions allow for a simple and efficient way for applications to synchronize access to and manipulate integer variables which are shared by multiple threads.
See Also
LockedExchangeSub LockedExchange LockedExchangeInc LockedExchangeDec
About
Unit
Donator
Azret Botash
Notes
The Win32 API provides similar functions. Look up InterlockedXxx in the Platform SDK.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page