Indy 9
|
function IndyInterlockedDecrement(var I: Integer): Integer;
IndyInterlockedDecrement is available in Delphi, C++ Builder, and Kylix, and provides WIN32 API compatibliity for the LOCK instruction that was not available on Windows 95.
Note: InterlockedCompareExchange, InterlockedExchange, InterlockedExchangeAdd, InterlockedIncrement, and IndyInterlockedDecrement are written in Assembly language, which is not normally allowed in Indy. However, these routines can only be done in assembly because of the LOCK instruction. Both the Linux and the Windows API support these routines, but they were not supported under Windows 95. The Indy implementation is needed to provide support on that platform.