<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><div class="gmail_quote">2014-10-02 14:16 GMT+08:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br></span>
TFPList is not thread-safe. You need to use TThreadList if you want a thread-safe list.<br>
<br>
Critical sections use OS calls, so there is always a performance penalty.</blockquote><div><br></div><div class="gmail_default" style="font-family:'courier new',monospace">I think the only thread-critical operation I need is to add item to the list, so I will use critical section myself, not replace TFPList with TThreadList, for simplicity and performance reason...</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">Xiangrong</div></div></div></div>