Thread safe memory allocation
Posted on 2004-11-30
If i want to allocate/release memory during the execution of a thread, will that automatically be thread safe?
If not, what ways could be used to make it safe in the easiest possible way?
TObject.Create / destroy
TComponent.Create / destroy
Setlength / refcount = 0
GetMem / ReallocMem / FreeMem
This could perhaps become a discussion rather than a question with exact answers.
In that case the best contributors will share points.
Feel free to participate :-)