Today I finally published all my updated open source units. Some were recently modified and for others the update was long overdue. Some were only slightly modified, in others the changes were bigger. Read through the list below and you’ll see.
In future posts I intend to write some more about changes in GpHugeFile, GpStuff, and GpLists. If you want to know more about changes in other units, drop a comment.
GpHugeFile 6.01
- Implemented read prefetch, activated by setting hfoPrefetch option flag.
- Number of buffers to prefetch can be set with a ResetEx parameter.
Unfortunately for some, this option is only available in Delphi 2007 and newer because the worker object is implemented using OmniThreadLibrary.
GpVersion 2.04
- Updated for Delphi 2009.
- Extended IVersion interface with IsNotHigherThan, IsNotLowerThan and IsEqualTo.
GpTextFile 4.02
- Compatible with Delphi 2009.
GpSync 1.22
- Implemented TGpSWMR.AttachToThread.
- Added internal check to ensure that TGpSWMR.WaitToRead/WaitToWrite/Done are called from one thread only.
GpStuff 1.19
- Added EnumPairs string array enumerator.
- Added EnumList string enumerator.
- Added EnumStrings enumerator.
- InterlockedIncrement/InterlockedDecrement deal with integers, therefore TGp4AlignedInt.Increment/Decrement must return integers. All other functions in TGp4AlignedInt also changed to work with integers.
- Implemented function CAS (compare and swap) in TGp4AlignedInt and TGp8AlignedInt64 records.
- TGp8AlignedInt renamed to TGp8AlignedInt64.
- TGp8AlignedInt.Addr must be PInt64, not PCardinal.
- Implemented IGpTraceable interface.
GpStructuredStorage 2.0a
- [Erik Berry] Definition of fmCreate in Delphi 2010 has changed and code had to be adjusted.
GpStreams 1.25b
- Safer TGpFixedMemoryStream.Read.
- Added setter for TGpFixedMemoryStream.Position so that invalid positions raise exception.
GpSharedMemory 4.12
- Compatible with Delphi 2009.
GpLists 1.43
- Added parameter 'step' to various Slice(), Walk() and WalkKV() enumerators.
- Added method FreeObjects to the TStringList helper.