I have some code that I'm trying to parallelize with Delphi's 7 Parallel Library. The routine I would like to parallelize adds a TObject to a TStringList when certain conditions are met in the routine. I suppose that will mean that I need to refactor it so that it returns an object to avoid contention for the TStringList.
What is the approach that has to be done in this case? It seems that it has to do with something called Futures related to TTasks, but I could not really figure out how that must be coded (I did not find any example in Delphi XE7 provided Samples).