Are there any new parallel programing features in Delphi 2006 - XE?
Are there any new parallel programing features in Delphi 2006 - XE?
Answers
There's a TThread.CreateAnonymousThread in Delphi XE which allows for simple execution of background tasks.
A trivial demo:
TThread.CreateAnonymousThread( procedure begin Sleep(10000); // replace with a real workload end ).Start;
Minimal in the releases themselves. In Delphi 2009 they added support for anonymous methods in TThread.Synchronize, and in XE they added a thread-communication queue to Generics.Collections.
But the community has contributed some interesting stuff. For example, check out OmniThreadLibrary.