Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


ID: 22917, Int64 Interlocked routines

by Will DeWitt Jr. Email: Anonymous


Interlocked routines for synchronized access to 64-bit integers.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 9.0  to 9.0 245 downloads
Copyright: No significant restrictions


Size: 2,453 bytes
Updated on Wed, 29 Dec 2004 03:39:45 GMT
Originally uploaded on Wed, 29 Dec 2004 03:24:36 GMT
SHA1 Hash: 51BC8DF3C8A25D73D2CE08C22DCB760C1B60B32E
MD5 Hash: EB83A434212A9A1D22F28865387BCEAB

    Explore the files in this upload

Description
Intlck64.pas includes the following functions--

function InterlockedDecrement(var Addend: longword): longword;
function InterlockedIncrement(var Addend: longword): longword;
function InterlockedExchange(var Target: longword; Value: longword): longword;
function InterlockedExchangeAdd(var Addend: longword; Value: integer): longword;
function InterlockedCompareExchange(var Destination: longword; Exchange, Comperand: longword): longword;
function InterlockedCompareExchange64(var Destination: Int64; Exchange, Comperand: Int64): Int64;
function InterlockedAnd64(var Destination: Int64; Value: Int64): Int64;
function InterlockedOr64(var Destination: Int64; Value: Int64): Int64;
function InterlockedXor64(var Destination: Int64; Value: Int64): Int64;
function InterlockedIncrement64(var Addend: Int64): Int64;
function InterlockedDecrement64(var Addend: Int64): Int64;
function InterlockedExchangeAdd6432(var Addend: Int64; Value: longword): Int64;
function InterlockedExchangeSub6432(var Addend: Int64; Value: longword): Int64;
function InterlockedExchange64(var Target: Int64; Value: Int64): Int64;
function InterlockedExchangeAdd64(var Addend: Int64; Value: Int64): Int64;

The included 32-bit integer functions are more optimized than the standard Windows routines.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03