TThreadList

By default, TThreadList ignores attempts to add duplicate entries to the list. If the list is large, this default is computationally expensive. For better performance, you may want to change the Duplicates property to dupAccept where possible.

function  LockList: TList;
Description
LockList  returns the TList object that contains the list, after locking out all other threads.

procedure UnlockList;
Description
UnlockList calls the Windows LeaveCriticalSection function. Use UnlockList after LockList to allow other threads access to the list.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章