The Delphi Geek – As you know if you follow my blog, OmniThreadLibrary now offers a simple way to do optimistic and pessimistic atomic initialization which works for interfaces, objects and (in the case of the pessimistic initialization), anything else. [In case you missed those articles - I also discussed a comparison of both methods and wrote a short post about the third approach to initialization.] A typical usage of both types of initialization would be: var sl: TStringList; ol: Locked<TObjectList>; Atomic<TStringList>.Initialize(sl, function: TStringList begin Result := ...
Visits by Source
Users who voted for this posting